[vlc-devel] [PATCH 3/6] d3d11va: don't go further if we don't know the format to decode to
Steve Lhomme
robux4 at videolabs.io
Wed Jun 14 15:48:48 CEST 2017
CID #1444698
---
modules/codec/avcodec/d3d11va.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index d2c6b52be9..a1ae988e67 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -784,6 +784,11 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id, const video_forma
break;
}
}
+ if (unlikely(textureFmt==NULL))
+ {
+ msg_Dbg(va, "no hardware decoder matching %s", DxgiFormatToStr(sys->render));
+ return VLC_EGENERIC;
+ }
if (sys->b_extern_pool)
{
--
2.12.1
More information about the vlc-devel
mailing list