Permalink
Browse files

mythtranscode: update new length for cut-to-end

Include frames cut from the end in the New Length reported by
mythtranscode.  Fixes #9528
  • Loading branch information...
sphery committed Jan 31, 2011
1 parent 3104b1f commit 7ac3fee6fd29760bb2fc38c08f6375e95a73a8b7
Showing with 3 additions and 0 deletions.
  1. +3 −0 mythtv/programs/mythtranscode/transcode.cpp
@@ -441,7 +441,10 @@ int Transcode::TranscodeFile(
long long lastFrame = (long long)m_proginfo->
GetLastFrameInPosMap() + 60;
if (lastFrame > lastStart)
+ {
+ new_frame_count -= (lastFrame - lastStart);
cutStr += QString("%1").arg(lastFrame);
+ }
}
VERBOSE(VB_GENERAL, QString("Cutlist : %1").arg(cutStr));
VERBOSE(VB_GENERAL, QString("Original Length: %1 frames")

0 comments on commit 7ac3fee

Please sign in to comment.