[NUT-devel] [nut]: r257 - trunk/libnut/demuxer.c

ods15 subversion at mplayerhq.hu
Mon Nov 20 15:13:55 CET 2006


Author: ods15
Date: Mon Nov 20 15:13:55 2006
New Revision: 257

Modified:
   trunk/libnut/demuxer.c

Log:
prevent seeking in nut_read_headers to find first syncpoint if there is no
seek function


Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c	(original)
+++ trunk/libnut/demuxer.c	Mon Nov 20 15:13:55 2006
@@ -1035,7 +1035,7 @@
 	}
 
 	// step 4 - find the first syncpoint in file
-	if (nut->last_headers > 1024 && !nut->seek_status) {
+	if (nut->last_headers > 1024 && !nut->seek_status && nut->i->isc.seek) {
 		// the headers weren't found in begginning of file
 		assert(nut->i->isc.seek);
 		seek_buf(nut->i, 0, SEEK_SET);



More information about the NUT-devel mailing list