summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-02-21 20:26:32 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-23 20:09:39 +0100
commit61f31915024a097fe1b7cf3cb7b955457e8cd7b8 (patch)
treecc2f106fecf1756b1aa4f1b22bbbec15de588a2b /src
parent5088493af614f6edb3ced5bc63c7c637c4ed12d2 (diff)
Fix reel setup when the last reel is less than 1 second long.
Diffstat (limited to 'src')
-rw-r--r--src/lib/film.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 772024902..a51ec0ad9 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -1800,6 +1800,10 @@ Film::reels () const
last = t;
}
}
+
+ if (!p.empty()) {
+ p.back().to = split_points.back();
+ }
break;
}
case ReelType::BY_LENGTH: