mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/decode: EAGAIN is not fully supported in decode_simple_internal()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
63eb630915
commit
42b20c93ae
@ -457,6 +457,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
if (ret == AVERROR(EAGAIN))
|
||||
av_frame_unref(frame);
|
||||
|
||||
// FF_CODEC_CB_TYPE_DECODE decoders must not return AVERROR EAGAIN
|
||||
// code later will add AVERROR(EAGAIN) to a pointer
|
||||
av_assert0(consumed != AVERROR(EAGAIN));
|
||||
if (consumed < 0)
|
||||
ret = consumed;
|
||||
if (consumed >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO)
|
||||
|
Loading…
Reference in New Issue
Block a user