[NUT-devel] [NUT] (ods15): r106 - /trunk/libnut/demuxer.c

syncmail at mplayerhq.hu syncmail at mplayerhq.hu
Thu Mar 16 06:46:07 CET 2006


Author: ods15
Date: Thu Mar 16 06:46:07 2006
New Revision: 106

Log:
fix skip over first syncpoint in file

Modified:
    trunk/libnut/demuxer.c

Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c (original)
+++ trunk/libnut/demuxer.c Thu Mar 16 06:46:07 2006
@@ -739,7 +739,7 @@
 			uint64_t tmp;
 			CHECK(get_bytes(nut->i, 8, &tmp));
 			while (tmp >> 56 == 'N') {
-				if (tmp == INDEX_STARTCODE) break;
+				if (tmp == INDEX_STARTCODE || tmp == SYNCPOINT_STARTCODE) break;
 				CHECK(get_header(nut->i, NULL));
 				CHECK(get_bytes(nut->i, 8, &tmp));
 			}




More information about the NUT-devel mailing list