Fix revert clip speed failing

parent c7e6a64d
Pipeline #6446 passed with stage
in 17 minutes and 58 seconds
......@@ -457,7 +457,7 @@ bool ClipModel::useTimewarpProducer(double speed, bool changeDuration, Fun &undo
int in = getIn();
int out = getOut();
int duration = out - in;
in = m_producer->get_length() * std::fabs(m_speed) - out;
in = qMax(0, (int)(m_producer->get_length() * std::fabs(m_speed) - out - 1));
out = in + duration;
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