mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-03 02:34:55 +00:00
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:
parent
10e98d0985
commit
6a0067fd26
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ FrameDump::Frame FrameDump::FetchState(u64 ticks)
|
||||||
{
|
{
|
||||||
Frame state;
|
Frame state;
|
||||||
state.ticks = ticks;
|
state.ticks = ticks;
|
||||||
state.first_frame = Movie::GetCurrentFrame() < 1;
|
state.first_frame = Movie::GetCurrentFrame() <= 1;
|
||||||
state.ticks_per_second = SystemTimers::GetTicksPerSecond();
|
state.ticks_per_second = SystemTimers::GetTicksPerSecond();
|
||||||
state.savestate_index = s_savestate_index;
|
state.savestate_index = s_savestate_index;
|
||||||
return state;
|
return state;
|
||||||
|
|
Loading…
Add table
Reference in a new issue