Commit 19281ac3 authored by Thomas Guillem's avatar Thomas Guillem

avcodec: return -ENOMEN when there is no pictures

In case of ENOMEN, the current avcodec worker thread will be stopped.

As advised by lu_zero.
parent 99f74096
...@@ -1097,7 +1097,7 @@ static int lavc_GetFrame(struct AVCodecContext *ctx, AVFrame *frame, int flags) ...@@ -1097,7 +1097,7 @@ static int lavc_GetFrame(struct AVCodecContext *ctx, AVFrame *frame, int flags)
pic = decoder_GetPicture(dec); pic = decoder_GetPicture(dec);
if (pic == NULL) if (pic == NULL)
return -1; return -ENOMEM;
if (sys->p_va != NULL) if (sys->p_va != NULL)
return lavc_va_GetFrame(ctx, frame, pic); return lavc_va_GetFrame(ctx, frame, pic);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment