diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-03-16 00:27:52 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2023-04-09 21:44:29 +0800 |
commit | 862a626c9db537f4ba248649353166a5004189b3 (patch) | |
tree | 4ab9dcdaee10d1efe97c9b14cfdc6cce3e7639ff | |
parent | 34b8af796341887766cfa02fe5f4383039919bb6 (diff) | |
download | ffmpeg-862a626c9db537f4ba248649353166a5004189b3.tar.gz |
avcodec/mediacodecenc: warning when global header is requested.
Add suggests to use extract_extradata bsf.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r-- | libavcodec/mediacodecenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |