[vlc-devel] [PATCH 4/5] avcodec: return -ENOMEN when there is no pictures
Thomas Guillem
thomas at gllm.fr
Fri Dec 11 13:34:47 CET 2015
In case of ENOMEN, the current avcodec worker thread will be stopped.
---
modules/codec/avcodec/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 32d1406..202964e 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1097,7 +1097,7 @@ static int lavc_GetFrame(struct AVCodecContext *ctx, AVFrame *frame, int flags)
pic = decoder_GetPicture(dec);
if (pic == NULL)
- return -1;
+ return -ENOMEM;
if (sys->p_va != NULL)
return lavc_va_GetFrame(ctx, frame, pic);
--
2.1.4
More information about the vlc-devel
mailing list