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

ods15 subversion at mplayerhq.hu
Sat Nov 18 13:04:14 CET 2006


Author: ods15
Date: Sat Nov 18 13:04:14 2006
New Revision: 234

Modified:
   trunk/libnut/demuxer.c

Log:
don't bother going into the big dynamic index mess if last syncpoint in file is not known


Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c	(original)
+++ trunk/libnut/demuxer.c	Sat Nov 18 13:04:14 2006
@@ -1273,7 +1273,7 @@
 		time_pos = nut->seek_time_pos;
 	}
 
-	if (nut->syncpoints.len) {
+	if (nut->syncpoints.s[nut->syncpoints.len-1].seen_next) {
 		syncpoint_list_t * sl = &nut->syncpoints;
 		int i;
 		int sync[nut->stream_count];
@@ -1304,7 +1304,7 @@
 		}
 		if (good_sync == -2) good_sync = backup; // all active streams are eor, just pick a random point, sort of.
 
-		if (sl->s[sl->len-1].seen_next && last_sync && good_sync >= 0) {
+		if (last_sync && good_sync >= 0) {
 			for (i = good_sync; i <= last_sync; i++) if (!sl->s[i].pts_valid) break;
 			if (i != last_sync+1 && good_sync <= last_sync) good_sync = -1;
 		} else good_sync = -1;



More information about the NUT-devel mailing list