From d0a3002808f72d306aa217ae3baaa71275c2a79d Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Sat, 27 Aug 2022 16:59:14 -0500 Subject: [PATCH] Fixing transition end frame calculation --- src/Timeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Timeline.cpp b/src/Timeline.cpp index a7d9567d..f436175a 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -528,7 +528,7 @@ std::shared_ptr Timeline::apply_effects(std::shared_ptr frame, int { // Does clip intersect the current requested time long effect_start_position = round(effect->Position() * info.fps.ToDouble()) + 1; - long effect_end_position = round((effect->Position() + (effect->Duration())) * info.fps.ToDouble()) + 1; + long effect_end_position = round((effect->Position() + (effect->Duration())) * info.fps.ToDouble()); bool does_effect_intersect = (effect_start_position <= timeline_frame_number && effect_end_position >= timeline_frame_number && effect->Layer() == layer);