Browse Source

Use I/O buffer size as initial value for backoff for seeking sync point search.

Originally committed as revision 19829 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Ivan Schreter 15 years ago
parent
commit
dbe0ad85c1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/seek.c

+ 2
- 2
libavformat/seek.c View File

@@ -342,8 +342,8 @@ int64_t ff_gen_syncpoint_search(AVFormatContext *s,

// 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,


Loading…
Cancel
Save