From 6a0067fd26f458888c55795587412f0cfb85c569 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 22 Dec 2019 11:54:30 +1000 Subject: [PATCH] FrameDump: Set first_frame if movie frame number <= 1 The frame number is incremented before the first frame is swapped out. Fixes ffmpeg creating invalid video files on output if the emulator only runs for a single frame, e.g. FifoCI. --- Source/Core/VideoCommon/FrameDump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/FrameDump.cpp b/Source/Core/VideoCommon/FrameDump.cpp index d01dacd751..7615542d95 100644 --- a/Source/Core/VideoCommon/FrameDump.cpp +++ b/Source/Core/VideoCommon/FrameDump.cpp @@ -443,7 +443,7 @@ FrameDump::Frame FrameDump::FetchState(u64 ticks) { Frame state; state.ticks = ticks; - state.first_frame = Movie::GetCurrentFrame() < 1; + state.first_frame = Movie::GetCurrentFrame() <= 1; state.ticks_per_second = SystemTimers::GetTicksPerSecond(); state.savestate_index = s_savestate_index; return state;