[FFmpeg-devel] [PATCH] avcodec/mediacodecenc: Flush bsf after create extradata
Zhao Zhili
quinkblack at foxmail.com
Tue Apr 23 17:27:50 EEST 2024
From: Zhao Zhili <zhilizhao at tencent.com>
Avoid leaving any data inside bsf while also avoid keep bsf in
EOF state.
---
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;
}
--
2.25.1
More information about the ffmpeg-devel
mailing list