]> git.sesse.net Git - kdenlive/blobdiff - src/clipitem.cpp
Fix issue with fade out and fade to black effects, might solve:
[kdenlive] / src / clipitem.cpp
index 561ab7d04166f4bd1f0788adcc779a52b660de1f..c2cc136169d78842fb5af6646bfef19dd80c5905 100644 (file)
@@ -253,7 +253,7 @@ void ClipItem::initEffect(QDomElement effect, int diff)
     }
     if (effect.attribute("tag") == "volume" || effect.attribute("tag") == "brightness") {
         if (effect.attribute("id") == "fadeout" || effect.attribute("id") == "fade_to_black") {
-            int end = (cropDuration() + cropStart()).frames(m_fps);
+            int end = (cropDuration() + cropStart()).frames(m_fps) - 1;
             int start = end;
             if (effect.attribute("id") == "fadeout") {
                 if (m_effectList.hasEffect(QString(), "fade_to_black") == -1) {