summaryrefslogtreecommitdiff
path: root/libavformat/asfdec.c
diff options
context:
space:
mode:
authorVladimir Pantelic <vladoman@gmail.com>2011-05-17 17:30:05 +0200
committerReinhard Tartler <siretart@tauware.de>2011-05-17 22:06:00 +0200
commit69fa23961ededd725c68b188493cf2653d70f4fd (patch)
tree17ad6ac5e80e3a18d3848d890c48ec81c30edb2e /libavformat/asfdec.c
parentb58bc17cf72fcd79b6ed80faae2d0c88729def15 (diff)
asfdec: do not fall back to binary/generic search
asf_read_seek() inside the asf demuxer already does the right thing, it tries the index and if that fails it uses binary search. If binary search is called from outside of asfdec.c it will fail because the asf code cannot clean up after itself. Therefore introduce AVFMT_NOBINSEARCH that prevents the seek code to fallback to binary search and AVFMT_NOGENSEARCH that prevents the seek code to fallback to generic search.
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r--libavformat/asfdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index f0c746ace2..e9a3995705 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1299,4 +1299,5 @@ AVInputFormat ff_asf_demuxer = {
asf_read_close,
asf_read_seek,
asf_read_pts,
+ .flags = AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH,
};