Commit 862a626c authored by Zhao Zhili's avatar Zhao Zhili

avcodec/mediacodecenc: warning when global header is requested.

Add suggests to use extract_extradata bsf.
Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent 34b8af79
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment