From d788a4e391e103413ac92e7513bf6d0e13e11a65 Mon Sep 17 00:00:00 2001 From: van Date: Fri, 3 Oct 2008 05:10:21 +0000 Subject: - Only do 'lost PCR' checks (r1712) when we're dealing with something that could be an over-the-air transport stream. We can't lose the clock of a program stream and shouldn't have losses on an m2ts stream. - Widen the DTS-to-PCR acceptance window from +-5sec to +-5min since there's nothing in the standard that bounds the offset between a DTS and its clock reference. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1802 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/stream.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libhb/stream.c') diff --git a/libhb/stream.c b/libhb/stream.c index 5c8f4f4f7..dd5c7090d 100755 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -466,6 +466,13 @@ hb_stream_t * hb_stream_open( char *path, hb_title_t *title ) d->ts_buf[i] = malloc( HB_DVD_READ_BUFFER_SIZE ); } hb_stream_seek( d, 0. ); + + if ( d->packetsize == 188 ) + { + // Assume that an over-the-air transport stream can lose PCR + // packets and try to filter out the timing inconsistencies. + title->flaky_clock = 1; + } } return d; } -- cgit v1.2.3