diff options
author | van <[email protected]> | 2008-10-03 05:10:21 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-10-03 05:10:21 +0000 |
commit | d788a4e391e103413ac92e7513bf6d0e13e11a65 (patch) | |
tree | 1f3405713226bde9afafde48275d48ee3eb13d05 /libhb/stream.c | |
parent | ccf8c8ce045d6e48194315dc4a42dc0d1a3b515c (diff) |
- 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
Diffstat (limited to 'libhb/stream.c')
-rwxr-xr-x | libhb/stream.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |