[FFmpeg-cvslog] avcodec/mediacodecenc: warning when global header is requested.
Zhao Zhili
git at videolan.org
Sun Apr 9 16:45:52 EEST 2023
ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Thu Mar 16 00:27:52 2023 +0800| [862a626c9db537f4ba248649353166a5004189b3] | committer: Zhao Zhili
avcodec/mediacodecenc: warning when global header is requested.
Add suggests to use extract_extradata bsf.
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=862a626c9db537f4ba248649353166a5004189b3
---
libavcodec/mediacodecenc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/mediacodecenc.c b/libavcodec/mediacodecenc.c
index 0767cd0165..e4b583a542 100644
--- a/libavcodec/mediacodecenc.c
+++ b/libavcodec/mediacodecenc.c
@@ -323,6 +323,10 @@ static av_cold int mediacodec_init(AVCodecContext *avctx)
goto bailout;
mediacodec_output_format(avctx);
+ if (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER)
+ av_log(avctx, AV_LOG_WARNING,
+ "Mediacodec encoder doesn't support AV_CODEC_FLAG_GLOBAL_HEADER. "
+ "Use extract_extradata bsf when necessary.\n");
s->frame = av_frame_alloc();
if (!s->frame)
More information about the ffmpeg-cvslog
mailing list