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

ods15 subversion at mplayerhq.hu
Sat Nov 18 15:45:19 CET 2006


Author: ods15
Date: Sat Nov 18 15:45:19 2006
New Revision: 239

Modified:
   trunk/libnut/demuxer.c

Log:
don't check the EOF area twice...


Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c	(original)
+++ trunk/libnut/demuxer.c	Sat Nov 18 15:45:19 2006
@@ -759,8 +759,10 @@
 	if (!nut->seek_status) {
 		nut->seek_status = 18; // start search at 512kb
 		// but first, let's check EOF
-		seek_buf(nut->i, -512*1024, SEEK_END);
-		return find_main_headers(nut);
+		if (!nut->last_syncpoint) { // unless we've checked it already
+			seek_buf(nut->i, -512*1024, SEEK_END);
+			return find_main_headers(nut);
+		}
 	}
 	seek_buf(nut->i, 1 << ++nut->seek_status, SEEK_SET);
 	// evantually we'll hit EOF and give up



More information about the NUT-devel mailing list