mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01: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
@ -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…
x
Reference in New Issue
Block a user