From aac8c5ec17be8204210211f8dc69b1cb3e596a33 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Tue, 24 Dec 2019 16:35:40 +1100 Subject: [PATCH] fixed speed changes on reversed clips in the speeddialog --- app/dialog/speedduration/speedduration.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/dialog/speedduration/speedduration.cpp b/app/dialog/speedduration/speedduration.cpp index d2c3c200a..3f3add0dc 100644 --- a/app/dialog/speedduration/speedduration.cpp +++ b/app/dialog/speedduration/speedduration.cpp @@ -225,6 +225,11 @@ void SpeedDurationDialog::accept() int64_t new_clip_duration = olive::time_to_timestamp(new_clip_length, timebase_); int64_t new_media_duration = qRound(static_cast(new_clip_duration) * new_speed); rational new_media_length = olive::timestamp_to_time(new_media_duration, timebase_); + + if (clip->is_reversed()) { + new_media_length = -new_media_length; + } + rational new_media_out = clip->media_in() + new_media_length; // Change the speed by calculating the appropriate media out point for this clip