mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
Appease global header warning.
This commit is contained in:
parent
f82e3de763
commit
6b1910a078
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue