summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-02-12 23:31:09 +0000
committerjstebbins <[email protected]>2010-02-12 23:31:09 +0000
commitcc1ebbbdd0fe2ec44a00150f1f167108de9db9db (patch)
treeab99d3c2f2198943e441c7b07e550113e90853fb /libhb
parent44e527c0f0fdaef234d56fb35b7a76bd1b5294b9 (diff)
fix incorrect comment in PS detection function
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3119 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/stream.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 29f292851..998aac4c6 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -354,9 +354,8 @@ static int hb_stream_check_for_ts(const uint8_t *buf)
static int hb_stream_check_for_ps(const uint8_t *buf)
{
- // transport streams should have a sync byte every 188 bytes.
- // search the first 8KB of buf looking for at least 8 consecutive
- // correctly located sync patterns.
+ // program streams should start with a PACK then some other mpeg start
+ // code (usually a SYS but that might be missing if we only have a clip).
int offset = 0;
for ( offset = 0; offset < 8*1024-24; ++offset )