mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mediacodecenc: Fix return empty packet when bsf is used
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
(cherry picked from commit a5a3788f56
)
This commit is contained in:
parent
2d3ee7c069
commit
13e93ffbfd
|
@ -533,7 +533,7 @@ static int mediacodec_encode(AVCodecContext *avctx, AVPacket *pkt)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (ret != AVERROR(EAGAIN))
|
||||
if (ret < 0 && ret != AVERROR(EAGAIN))
|
||||
return ret;
|
||||
|
||||
if (!s->frame->buf[0]) {
|
||||
|
|
Loading…
Reference in New Issue