Commit dbe0ad85 authored by Ivan Schreter's avatar Ivan Schreter

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
parent 749fac31
...@@ -342,8 +342,8 @@ int64_t ff_gen_syncpoint_search(AVFormatContext *s, ...@@ -342,8 +342,8 @@ int64_t ff_gen_syncpoint_search(AVFormatContext *s,
// Find keyframes in all active streams with timestamp/position just before // Find keyframes in all active streams with timestamp/position just before
// and just after requested timestamp/position. // and just after requested timestamp/position.
step = 1024; step = s->pb->buffer_size;
curpos = pos; curpos = FFMAX(pos - step / 2, 0);
for (;;) { for (;;) {
url_fseek(s->pb, curpos, SEEK_SET); url_fseek(s->pb, curpos, SEEK_SET);
search_hi_lo_keyframes(s, 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