mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Appease global header warning.
This commit is contained in:
@ -159,6 +159,9 @@ bool AVIDump::CreateVideoFile()
|
|||||||
s_codec_context->gop_size = 12;
|
s_codec_context->gop_size = 12;
|
||||||
s_codec_context->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGRA : AV_PIX_FMT_YUV420P;
|
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)
|
if (avcodec_open2(s_codec_context, codec, nullptr) < 0)
|
||||||
{
|
{
|
||||||
WARN_LOG(VIDEO, "Could not open codec.");
|
WARN_LOG(VIDEO, "Could not open codec.");
|
||||||
|
Reference in New Issue
Block a user