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:
a940198
)
asf: only set index_read if the index contained entries.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 28 Mar 2012 17:22:25 +0000
(10:22 -0700)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 28 Mar 2012 17:22:25 +0000
(10:22 -0700)
This allows falling back to a binary search if the file contains no
index, thus fixing seeking in such files (e.g. luckynight.wma).
libavformat/asfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/asfdec.c
b/libavformat/asfdec.c
index d3869b427b2c38ff336566ed904050d43e69d6eb..f094647ba0c5ebcba0f19c25972fdeb8b357b905 100644
(file)
--- a/
libavformat/asfdec.c
+++ b/
libavformat/asfdec.c
@@
-1235,7
+1235,7
@@
static void asf_build_simple_index(AVFormatContext *s, int stream_index)
last_pos=pos;
}
}
- asf->index_read=
1
;
+ asf->index_read=
ict > 0
;
}
avio_seek(s->pb, current_pos, SEEK_SET);
}