mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
vapoursynth: use exact fraction for frame rate
This commit is contained in:
parent
962295cf1e
commit
3583e57ddc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user