Appease global header warning.

This commit is contained in:
Vlad Firoiu 2017-02-21 11:49:37 -08:00
parent f82e3de763
commit 6b1910a078
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,9 @@ bool AVIDump::CreateVideoFile()
s_codec_context->gop_size = 12;
s_codec_context->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGRA : AV_PIX_FMT_YUV420P;
if (output_format->flags & AVFMT_GLOBALHEADER)
s_codec_context->flags |= CODEC_FLAG_GLOBAL_HEADER;
if (avcodec_open2(s_codec_context, codec, nullptr) < 0)
{
WARN_LOG(VIDEO, "Could not open codec.");