footage: clamp to last frame rather than length

Fixes #1604
This commit is contained in:
itsmattkc
2021-05-03 22:18:40 +10:00
parent a15ae63c7d
commit 32e11bb6a1
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ void NodeTraverser::PostProcessTable(const Node *node, const QString& output, co
FootageJob job = v.data().value<FootageJob>();
if (job.type() == Track::kVideo) {
rational footage_time = Footage::AdjustTimeByLoopMode(range.in(), job.loop_mode(), job.length(), job.video_params().video_type());
rational footage_time = Footage::AdjustTimeByLoopMode(range.in(), job.loop_mode(), job.length(), job.video_params().video_type(), job.video_params().frame_rate_as_time_base());
if (!footage_time.isNaN()) {
QVariant value = ProcessVideoFootage(job, footage_time);