aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
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/avformat.h
parentb58bc17cf72fcd79b6ed80faae2d0c88729def15 (diff)
downloadffmpeg-69fa23961ededd725c68b188493cf2653d70f4fd.tar.gz
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/avformat.h')
-rw-r--r--libavformat/avformat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 732756222e..aca246d95a 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -258,6 +258,8 @@ typedef struct AVFormatParameters {
#define AVFMT_VARIABLE_FPS 0x0400 /**< Format allows variable fps. */
#define AVFMT_NODIMENSIONS 0x0800 /**< Format does not need width/height */
#define AVFMT_NOSTREAMS 0x1000 /**< Format does not require any streams */
+#define AVFMT_NOBINSEARCH 0x2000 /**< Format does not allow to fallback to binary search via read_timestamp */
+#define AVFMT_NOGENSEARCH 0x4000 /**< Format does not allow to fallback to generic search */
typedef struct AVOutputFormat {
const char *name;