[vlc-commits] d3d11va: fix error returned when we can't get an YV12 filter
Steve Lhomme
git at videolan.org
Sun Oct 9 10:46:23 CEST 2016
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Sep 6 09:13:11 2016 +0200| [88b419b48758ae9989e65074cee6e8f767892ddc] | committer: Jean-Baptiste Kempf
d3d11va: fix error returned when we can't get an YV12 filter
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88b419b48758ae9989e65074cee6e8f767892ddc
---
modules/codec/avcodec/d3d11va.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 9f0aea8..038b117 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -475,7 +475,10 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
{
sys->filter = CreateFilter( VLC_OBJECT(va), fmt, sys->i_chroma);
if (sys->filter == NULL)
+ {
+ err = VLC_EGENERIC;
goto error;
+ }
}
err = directx_va_Setup(va, &sys->dx_sys, ctx);
More information about the vlc-commits
mailing list