diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-03-10 22:14:54 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-03-11 12:50:35 +0100 |
| commit | 069280ddc6c9bc161a4a003c555f685adbb47f53 (patch) | |
| tree | 31a07285551f17e35fcbcb0b95a59ac380f3d018 /Source/Core/VideoCommon/FrameDumpFFMpeg.cpp | |
| parent | 2102e642999fccc53fd2bfac0cf1bc0e8290b067 (diff) | |
HW/VideoInterface: Refactor to class.
Diffstat (limited to 'Source/Core/VideoCommon/FrameDumpFFMpeg.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FrameDumpFFMpeg.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp index 09fdf4dbac..d8049aeebd 100644 --- a/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp +++ b/Source/Core/VideoCommon/FrameDumpFFMpeg.cpp @@ -36,6 +36,7 @@ extern "C" { #include "Core/ConfigManager.h" #include "Core/HW/SystemTimers.h" #include "Core/HW/VideoInterface.h" +#include "Core/System.h" #include "VideoCommon/FrameDumper.h" #include "VideoCommon/OnScreenDisplay.h" @@ -65,10 +66,11 @@ namespace { AVRational GetTimeBaseForCurrentRefreshRate() { + auto& vi = Core::System::GetInstance().GetVideoInterface(); int num; int den; - av_reduce(&num, &den, int(VideoInterface::GetTargetRefreshRateDenominator()), - int(VideoInterface::GetTargetRefreshRateNumerator()), std::numeric_limits<int>::max()); + av_reduce(&num, &den, int(vi.GetTargetRefreshRateDenominator()), + int(vi.GetTargetRefreshRateNumerator()), std::numeric_limits<int>::max()); return AVRational{num, den}; } |
