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

ods15 subversion at mplayerhq.hu
Mon Nov 20 15:12:38 CET 2006


Author: ods15
Date: Mon Nov 20 15:12:38 2006
New Revision: 256

Modified:
   trunk/libnut/demuxer.c

Log:
Prevent useless seeking in smart_find_syncpoint()


Modified: trunk/libnut/demuxer.c
==============================================================================
--- trunk/libnut/demuxer.c	(original)
+++ trunk/libnut/demuxer.c	Mon Nov 20 15:12:38 2006
@@ -853,7 +853,7 @@
 		ERROR(i == sl->len || (i && !sl->s[i-1].seen_next), -1);
 
 		// trust the caller if it gave more percise syncpoint location
-		if (pos < sl->s[i].pos) seek_buf(nut->i, sl->s[i].pos, SEEK_SET);
+		if (ABS(pos - sl->s[i].pos) > 15) seek_buf(nut->i, sl->s[i].pos, SEEK_SET);
 	}
 	fss->i = i + 1;
 	fss->pos = pos;



More information about the NUT-devel mailing list