diff options
author | jstebbins <[email protected]> | 2011-08-04 03:23:24 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-08-04 03:23:24 +0000 |
commit | e4d2f894482ebfb95dc55a97e3dc417d005e7324 (patch) | |
tree | 010d6eb0e34546d01fa39d28a7335b0849fdc7b7 /libhb/stream.c | |
parent | c9eab48235633df60714dedea4204e0c8bc1b43f (diff) |
libhb: tighten up dvd program stream detection
so that we don't misdetect mpeg1 program streams as dvd program streams
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4155 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rw-r--r-- | libhb/stream.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 905cdd951..30736cdad 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -461,8 +461,10 @@ static int hb_stream_check_for_dvd_ps(const uint8_t *buf) { // DVD program streams should have a Pack header every 2048 bytes. // check that we have 4 of these in a row. - return check_ps_sync(&buf[0*2048]) && check_ps_sync(&buf[1*2048]) && - check_ps_sync(&buf[2*2048]) && check_ps_sync(&buf[3*2048]); + return check_ps_sync(&buf[0*2048]) && check_ps_sc(&buf[0*2048]) && + check_ps_sync(&buf[1*2048]) && check_ps_sc(&buf[1*2048]) && + check_ps_sync(&buf[2*2048]) && check_ps_sc(&buf[2*2048]) && + check_ps_sync(&buf[3*2048]) && check_ps_sc(&buf[3*2048]); } static int hb_stream_get_type(hb_stream_t *stream) |