//kDebug() << "// DUR DIFF1:" << durationDiff.frames(25) << ", ADJUSTED: " << durationDiff.frames(25) * speed << ", SPED:" << speed;
if (cropDuration() + durationDiff <= GenTime()) {
durationDiff = GenTime() - (cropDuration() - GenTime(3, m_fps));
- } else if (type() == AVWIDGET && (cropStart() + cropDuration() + durationDiff >= maxDuration())) {
- //kDebug() << "// MAX OVERLOAD:" << cropDuration().frames(25) << " + " << durationDiff.frames(25) << ", MAX:" << maxDuration().frames(25);
- durationDiff = maxDuration() - cropDuration() - cropStart();
}
//kDebug() << "// DUR DIFF2:" << durationDiff.frames(25) << ", ADJUSTED: " << durationDiff.frames(25) * speed << ", SPED:" << speed;
m_cropDuration += durationDiff * speed;
void ClipItem::resizeEnd(int posx, double /*speed*/, bool updateKeyFrames)
{
- const int max = (startPos() - cropStart() + maxDuration()).frames(m_fps) + 1;
+ const int max = (startPos() - cropStart() + maxDuration()).frames(m_fps);
if (posx > max) posx = max;
if (posx == endPos().frames(m_fps)) return;
//kDebug() << "// NEW POS: " << posx << ", OLD END: " << endPos().frames(m_fps);