Skip to content

Commit 7ac3fee

Browse files
committed
mythtranscode: update new length for cut-to-end
Include frames cut from the end in the New Length reported by mythtranscode. Fixes #9528
1 parent 3104b1f commit 7ac3fee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mythtv/programs/mythtranscode/transcode.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,10 @@ int Transcode::TranscodeFile(
441441
long long lastFrame = (long long)m_proginfo->
442442
GetLastFrameInPosMap() + 60;
443443
if (lastFrame > lastStart)
444+
{
445+
new_frame_count -= (lastFrame - lastStart);
444446
cutStr += QString("%1").arg(lastFrame);
447+
}
445448
}
446449
VERBOSE(VB_GENERAL, QString("Cutlist : %1").arg(cutStr));
447450
VERBOSE(VB_GENERAL, QString("Original Length: %1 frames")

0 commit comments

Comments
 (0)