From 5d03d5dde0b75abeab0cfe9954dc51f9e594e1f2 Mon Sep 17 00:00:00 2001 From: feos Date: Sat, 5 Oct 2019 23:29:55 +0300 Subject: [PATCH] Another AVI fix for WinAPI importers When not using native resolution, FFMPEG automatically selects FFV1 version 3 for whatever reason, and that can't be decoded by VirtualDub/AVISynth. --- Source/Core/VideoCommon/FrameDump.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoCommon/FrameDump.cpp b/Source/Core/VideoCommon/FrameDump.cpp index 6a00ce4e12..8aca110e1b 100644 --- a/Source/Core/VideoCommon/FrameDump.cpp +++ b/Source/Core/VideoCommon/FrameDump.cpp @@ -191,6 +191,7 @@ bool FrameDump::CreateVideoFile() s_codec_context->time_base.num = 1; s_codec_context->time_base.den = VideoInterface::GetTargetRefreshRate(); s_codec_context->gop_size = 1; + s_codec_context->level = 1; s_codec_context->pix_fmt = g_Config.bUseFFV1 ? AV_PIX_FMT_BGR0 : AV_PIX_FMT_YUV420P; if (output_format->flags & AVFMT_GLOBALHEADER)