1
0
Fork 0

vapoursynth: use exact fraction for frame rate

This commit is contained in:
arch1t3cht 2022-11-01 11:26:49 +01:00
parent 962295cf1e
commit 3583e57ddc
1 changed files with 1 additions and 1 deletions

View File

@ -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;