Commit b42397d0 authored by schreter's avatar schreter

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19829 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 05eba234
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment