avcodec/mediacodecdec: fix return EAGAIN after EOF
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com> (cherry picked from commit f27fce0c0cc67ed2d36d7353d843234829bb2f5f)
This commit is contained in:
parent
e38092ef93
commit
61b88b4dda
@ -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…
x
Reference in New Issue
Block a user