Commit 57ff4212 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: avoid crashing later in the decoder

ID3D11VideoDevice::CreateVideoDecoderOutputView() crashes when the texture has
more than 30 slices. Luckily we never need more than that.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent bde3abf9
......@@ -552,6 +552,11 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
if ( vd->sys->pool != NULL )
return vd->sys->pool;
if (pool_size > 30) {
msg_Err(vd, "Avoid crashing when using ID3D11VideoDecoderOutputView with too many slices");
return NULL;
picture_t** pictures = NULL;
unsigned picture_count = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment