OSDN Git Service

fix incorrect comment in PS detection function
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 12 Feb 2010 23:31:09 +0000 (23:31 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 12 Feb 2010 23:31:09 +0000 (23:31 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@3119 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/stream.c

index 29f2928..998aac4 100644 (file)
@@ -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 )