summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-03-15 22:54:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-03-15 22:54:22 +0000
commit493f54ada083b4d6c8f14f02607224fe258c211c (patch)
tree8f13732a9eff3e14888c4e79de4706b5aa06d321 /libavformat/avio.h
parent53f66cee0cb99e6fad4c4d1c13153e6e8e9fd53b (diff)
Add AVSEEK_FORCE flag to indicate that the code should attempt to seek
by any means. Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 80ec48f725..8145f92861 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -192,6 +192,14 @@ int64_t av_url_read_seek(URLContext *h, int stream_index,
*/
#define AVSEEK_SIZE 0x10000
+/**
+ * Oring this flag as into the "whence" parameter to a seek function causes it to
+ * seek by any means (like reopening and linear reading) or other normally unreasonble
+ * means that can be extreemly slow.
+ * This may be ignored by the seek code.
+ */
+#define AVSEEK_FORCE 0x20000
+
typedef struct URLProtocol {
const char *name;
int (*url_open)(URLContext *h, const char *url, int flags);