Commit 78f4cfea authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix in point calculation on speed revert.

BUG: 424582
parent e85005ba
......@@ -548,9 +548,8 @@ bool ClipModel::useTimewarpProducer(double speed, bool pitchCompensate, bool cha
};
}
if (revertSpeed) {
int in = getIn();
int out = getOut();
in = qMax(0, qRound((m_producer->get_length() - 1 - out)* std::fabs(m_speed/speed) + 0.5));
int out = getOut() + 1;
int in = qMax(0, qRound((m_producer->get_length() - 1 - out)* std::fabs(m_speed/speed)));
out = in + newDuration;
operation = [operation, in, out, this]() {
bool res = operation();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment