Skip to content
Permalink
Browse files

Commflag: Avoid adding an artificial non-break region at the end.

If the recording is deemed to end with a final break region, extend
the final break slightly, to avoid a spurious 2-second non-break
region at the very end.

Fixes #10275
  • Loading branch information...
stichnot committed Feb 17, 2012
1 parent 5af1950 commit 31351766db1439e78b2d0022aa65b00b825c69a8
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/programs/mythcommflag/ClassicCommDetector.cpp
@@ -1805,7 +1805,10 @@ void ClassicCommDetector::BuildAllMethodsCommList(void)
.arg((framesProcessed - breakStart - 1)));

commBreakMap[breakStart] = MARK_COMM_START;
commBreakMap[framesProcessed - (int)(2 * fps) - 2] = MARK_COMM_END;
// Create what is essentially an open-ended final skip region
// by setting the end point 10 seconds past the end of the
// recording.
commBreakMap[framesProcessed + (10 * fps)] = MARK_COMM_END;
}

// include/exclude blanks from comm breaks

0 comments on commit 3135176

Please sign in to comment.
You can’t perform that action at this time.