summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/FrameDumpFFMpeg.cpp')
-rw-r--r--Source/Core/VideoCommon/FrameDumpFFMpeg.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
index d8049aeebd..760ae6f7e0 100644
--- a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
+++ b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
@@ -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())
{