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
This commit is contained in:
Michael Niedermayer
2010-03-15 22:54:22 +00:00
parent 53f66cee0c
commit 493f54ada0
3 changed files with 12 additions and 3 deletions

View File

@@ -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);