projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
749fac3
)
Use I/O buffer size as initial value for backoff for seeking sync point search.
author
Ivan Schreter
<schreter@gmx.net>
Sun, 13 Sep 2009 08:57:30 +0000
(08:57 +0000)
committer
Ivan Schreter
<schreter@gmx.net>
Sun, 13 Sep 2009 08:57:30 +0000
(08:57 +0000)
Originally committed as revision 19829 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/seek.c
patch
|
blob
|
history
diff --git
a/libavformat/seek.c
b/libavformat/seek.c
index
758767e
..
93cb679
100644
(file)
--- a/
libavformat/seek.c
+++ b/
libavformat/seek.c
@@
-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,