[vlc-devel] [PATCH 1/4] dxva2: fix incorrect return value
Felix Abecassis
felix.abecassis at gmail.com
Tue Mar 4 15:21:59 CET 2014
---
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 330daf0..824eaee 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -498,7 +498,7 @@ static int Open(vlc_va_t *external, int codec_id, const es_format_t *fmt)
{
vlc_va_dxva2_t *va = calloc(1, sizeof(*va));
if (!va)
- return NULL;
+ return VLC_EGENERIC;
external->sys = va;
/* */
--
1.8.3.2
More information about the vlc-devel
mailing list