mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Core/SystemTimers: Refactor to class, move to System.
This commit is contained in:
@ -356,9 +356,10 @@ void FFMpegFrameDump::AddFrame(const FrameData& frame)
|
||||
return;
|
||||
|
||||
// Calculate presentation timestamp from ticks since start.
|
||||
const s64 pts = av_rescale_q(frame.state.ticks - m_context->start_ticks,
|
||||
AVRational{1, int(SystemTimers::GetTicksPerSecond())},
|
||||
m_context->codec->time_base);
|
||||
const s64 pts = av_rescale_q(
|
||||
frame.state.ticks - m_context->start_ticks,
|
||||
AVRational{1, int(Core::System::GetInstance().GetSystemTimers().GetTicksPerSecond())},
|
||||
m_context->codec->time_base);
|
||||
|
||||
if (!IsFirstFrameInCurrentFile())
|
||||
{
|
||||
|
Reference in New Issue
Block a user