asfdec: do not fall back to binary/generic search
authorVladimir Pantelic <vladoman@gmail.com>
Tue, 17 May 2011 15:30:05 +0000 (17:30 +0200)
committerReinhard Tartler <siretart@tauware.de>
Tue, 17 May 2011 20:06:00 +0000 (22:06 +0200)
commit69fa23961ededd725c68b188493cf2653d70f4fd
tree17ad6ac5e80e3a18d3848d890c48ec81c30edb2e
parentb58bc17cf72fcd79b6ed80faae2d0c88729def15
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.
libavformat/asfdec.c
libavformat/avformat.h
libavformat/utils.c