Commit 407e2e09 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't create producers with non integer length (fixes invalid clip issue)

parent bc32c54a
......@@ -622,7 +622,7 @@ std::shared_ptr<Mlt::Producer> ProjectClip::getTimelineProducer(int trackId, int
Mlt::Properties original(m_masterProducer->get_properties());
Mlt::Properties cloneProps(warpProducer->get_properties());
cloneProps.pass_list(original, ClipController::getPassPropertiesList(false));
warpProducer->set("length", double(original_length) / std::abs(speed));
warpProducer->set("length", (int) (original_length / std::abs(speed) + 0.5));
qDebug() << "warp LENGTH" << warpProducer->get_length();
Supports Markdown
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