[FFmpeg-cvslog] avcodec/mediacodecenc: Flush bsf after create extradata
Zhao Zhili
git at videolan.org
Mon Apr 29 10:59:20 EEST 2024
ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Tue Apr 23 22:27:50 2024 +0800| [cf4af4bca0368afd36e1c77980bf5e8a165bb99a] | committer: Zhao Zhili
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 at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf4af4bca0368afd36e1c77980bf5e8a165bb99a
---
libavcodec/mediacodecenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/mediacodecenc.c b/libavcodec/mediacodecenc.c
index c87a0d86c5..bbf570e7be 100644
--- a/libavcodec/mediacodecenc.c
+++ b/libavcodec/mediacodecenc.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list