summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-01-04 23:07:50 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2024-01-04 23:35:19 +0100
commit07c035e659ec6d7cc9d0b360a4a825d0cc20b439 (patch)
tree7d830f22195984227e8dca5cff9d5e6156caf4d4 /Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
parent9c91b5edca7b7e09d4020d03f5c94c482e09a56c (diff)
Core/SystemTimers: Refactor to class, move to System.
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())
{