mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Appease global header warning.
This commit is contained in:
parent
f82e3de763
commit
6b1910a078
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user