summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2024-01-05 01:50:29 -0500
committerGitHub <noreply@github.com>2024-01-05 01:50:29 -0500
commitbfb417fa98c324c3045e0892a23535a9b4ebde4d (patch)
tree7d830f22195984227e8dca5cff9d5e6156caf4d4 /Source/Core/VideoCommon/FrameDumpFFMpeg.cpp
parent9c91b5edca7b7e09d4020d03f5c94c482e09a56c (diff)
parent07c035e659ec6d7cc9d0b360a4a825d0cc20b439 (diff)
Merge pull request #12481 from AdmiralCurtiss/globals-systemtimers
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())
{