[vlc-commits] Fix DxVA2 crash on Error path

Luca Barbato git at videolan.org
Mon Oct 21 23:52:28 CEST 2013


vlc | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Oct 21 23:48:11 2013 +0200| [5e5a9ad1ae043664f860822437cd2e624e0188e9] | committer: Jean-Baptiste Kempf

Fix DxVA2 crash on Error path

Close #9500 and #9665

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e5a9ad1ae043664f860822437cd2e624e0188e9
---

 modules/codec/avcodec/dxva2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 490e424..2ef69ec 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -552,7 +552,7 @@ static int Open(vlc_va_t *external, int codec_id, const es_format_t *fmt)
     return VLC_SUCCESS;
 
 error:
-    Close(va);
+    Close(external);
     return VLC_EGENERIC;
 }
 /* */



More information about the vlc-commits mailing list