1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/mediacodecdec: fix return EAGAIN after EOF

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili 2023-11-18 16:03:11 +08:00
parent e9c93009fc
commit f27fce0c0c

View File

@ -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);
}