avcodec/decode: EAGAIN is not fully supported in decode_simple_internal()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/390/head
Michael Niedermayer 1 year ago
parent 63eb630915
commit 42b20c93ae
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 3
      libavcodec/decode.c

@ -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…
Cancel
Save