diff options
| author | Stenzek <stenzek@gmail.com> | 2019-12-22 11:54:30 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2019-12-22 11:54:34 +1000 |
| commit | 6a0067fd26f458888c55795587412f0cfb85c569 (patch) | |
| tree | 8e59d7eb5301e19126e3cdc0457d7d88c1f40587 /Source/Core/VideoCommon/FrameDump.cpp | |
| parent | 10e98d0985e42f4ff31795e97cff1d4a711cb760 (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/FrameDump.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FrameDump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
