You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixed FrameMapper::info::video_length after calling FrameMapper::ChangeMapping(). Added some unit tests to verify.
This commit is contained in:
@@ -773,6 +773,7 @@ void FrameMapper::ChangeMapping(Fraction target_fps, PulldownType target_pulldow
|
||||
info.fps.den = target_fps.den;
|
||||
info.video_timebase.num = target_fps.den;
|
||||
info.video_timebase.den = target_fps.num;
|
||||
info.video_length = round(info.duration * info.fps.ToDouble());
|
||||
pulldown = target_pulldown;
|
||||
info.sample_rate = target_sample_rate;
|
||||
info.channels = target_channels;
|
||||
|
||||
Reference in New Issue
Block a user