From 8c2438750958adbed7e99453077e27d359073096 Mon Sep 17 00:00:00 2001 From: Vlad Firoiu Date: Sat, 25 Feb 2017 01:01:21 -0800 Subject: [PATCH] Use ffv1 if user requests it. --- Source/Core/VideoCommon/AVIDump.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp index 911f7951ad..3d7459d054 100644 --- a/Source/Core/VideoCommon/AVIDump.cpp +++ b/Source/Core/VideoCommon/AVIDump.cpp @@ -139,7 +139,8 @@ bool AVIDump::CreateVideoFile() return false; } - const AVCodecDescriptor* codec_desc = avcodec_descriptor_get_by_name(g_Config.sDumpCodec.c_str()); + const std::string& codec_name = g_Config.bUseFFV1 ? "ffv1" : g_Config.sDumpCodec; + const AVCodecDescriptor* codec_desc = avcodec_descriptor_get_by_name(codec_name.c_str()); AVCodecID codec_id = codec_desc ? codec_desc->id : output_format->video_codec; const AVCodec* codec = nullptr;