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.
This commit is contained in:
Stenzek 2019-12-22 11:54:30 +10:00
parent 10e98d0985
commit 6a0067fd26
1 changed files with 1 additions and 1 deletions

View File

@ -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;