mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/mediacodecenc: warning when global header is requested.
Add suggests to use extract_extradata bsf. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
34b8af7963
commit
862a626c9d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user