From 3583e57ddce4fc5a19a705e30657e39a2303c4aa Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Tue, 1 Nov 2022 11:26:49 +0100 Subject: [PATCH] vapoursynth: use exact fraction for frame rate --- src/video_provider_vs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_provider_vs.cpp b/src/video_provider_vs.cpp index a0a006f43..724df2cb2 100644 --- a/src/video_provider_vs.cpp +++ b/src/video_provider_vs.cpp @@ -137,7 +137,7 @@ VapoursynthVideoProvider::VapoursynthVideoProvider(agi::fs::path const& filename // Assume constant frame rate, since handling VFR would require going through all frames when loading. // Users can load custom timecodes files to deal with VFR. // Alternatively (TODO) the provider could read timecodes and keyframes from a second output node. - fps = (double) vi->fpsNum / vi->fpsDen; + fps = agi::vfr::Framerate(vi->fpsNum, vi->fpsDen); // Find the first frame to get some info const VSFrame *frame;