mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 17:30:00 +01:00
avcodec/mediacodecenc: Flush bsf after create extradata
Avoid leaving any data inside bsf while also avoid keep bsf in EOF state. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -681,6 +681,7 @@ bailout:
|
||||
s->eof_sent = 0;
|
||||
ff_AMediaCodec_flush(s->codec);
|
||||
}
|
||||
av_bsf_flush(s->bsf);
|
||||
av_packet_free(&pkt);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user