提交 b9c54496 编写于 作者: P Palana

Request global headers from ffmpeg aac encoder

FAAC and FDK AAC don't populate AVCodecContext::extradata{_size} unless
CODEC_FLAG_GLOBAL_HEADER is set
上级 00bdf116
......@@ -160,6 +160,8 @@ static void *aac_create(obs_data_t settings, obs_encoder_t encoder)
/* enable experimental FFmpeg encoder if the only one available */
enc->context->strict_std_compliance = -2;
enc->context->flags = CODEC_FLAG_GLOBAL_HEADER;
if (initialize_codec(enc))
return enc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册