[FFmpeg-cvslog] r19829 - trunk/libavformat/seek.c
schreter
subversion
Sun Sep 13 10:57:31 CEST 2009
Author: schreter
Date: Sun Sep 13 10:57:30 2009
New Revision: 19829
Log:
Use I/O buffer size as initial value for backoff for seeking sync point search.
Modified:
trunk/libavformat/seek.c
Modified: trunk/libavformat/seek.c
==============================================================================
--- trunk/libavformat/seek.c Sat Sep 12 22:10:02 2009 (r19828)
+++ trunk/libavformat/seek.c Sun Sep 13 10:57:30 2009 (r19829)
@@ -342,8 +342,8 @@ int64_t ff_gen_syncpoint_search(AVFormat
// Find keyframes in all active streams with timestamp/position just before
// and just after requested timestamp/position.
- step = 1024;
- curpos = pos;
+ step = s->pb->buffer_size;
+ curpos = FFMAX(pos - step / 2, 0);
for (;;) {
url_fseek(s->pb, curpos, SEEK_SET);
search_hi_lo_keyframes(s,
More information about the ffmpeg-cvslog
mailing list