Commit f27fce0c authored by Zhao Zhili's avatar Zhao Zhili

avcodec/mediacodecdec: fix return EAGAIN after EOF

Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent e9c93009
......@@ -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);
}
......
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