mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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