Fix reel setup when the last reel is less than 1 second long.
authorCarl Hetherington <cth@carlh.net>
Sun, 21 Feb 2021 19:26:32 +0000 (20:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 23 Feb 2021 19:09:39 +0000 (20:09 +0100)
src/lib/film.cc

index 7720249021eeaa0dd5bd3265b0db72c6ffe65788..a51ec0ad9ac58f35a3b49724fc588437ec44b794 100644 (file)
@@ -1800,6 +1800,10 @@ Film::reels () const
                                last = t;
                        }
                }
+
+               if (!p.empty()) {
+                       p.back().to = split_points.back();
+               }
                break;
        }
        case ReelType::BY_LENGTH: