avcodec/mediacodecdec: fix return EAGAIN after EOF

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
(cherry picked from commit f27fce0c0c)
pull/390/head^2
Zhao Zhili 1 year ago
parent e38092ef93
commit 61b88b4dda
  1. 2
      libavcodec/mediacodecdec_common.c

@ -804,6 +804,8 @@ int ff_mediacodec_dec_receive(AVCodecContext *avctx, MediaCodecDecContext *s,
return AVERROR_EXTERNAL;
}
if (s->draining && s->eos)
return AVERROR_EOF;
return AVERROR(EAGAIN);
}

Loading…
Cancel
Save