diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-02 11:57:53 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-13 16:31:15 -0400 |
commit | b631fba936d2b353f3c2a76f746bc40a1a193b75 (patch) | |
tree | 01819d1a52fe9b38a32385af0f6bca9f8b01fec9 /libavformat/avformat.h | |
parent | 050e20aee653bf17c0e8d0317b50cfe0a7142366 (diff) | |
download | ffmpeg-b631fba936d2b353f3c2a76f746bc40a1a193b75.tar.gz |
avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.
This will prevent seeking by bytes for formats that cannot handle this.
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 7b350f15cd..70d466e0d1 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -274,6 +274,7 @@ typedef struct AVFormatParameters { #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 */ +#define AVFMT_NO_BYTE_SEEK 0x8000 /**< Format does not allow seeking by bytes */ typedef struct AVOutputFormat { const char *name; @@ -408,7 +409,7 @@ typedef struct AVInputFormat { /** * Can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_SHOW_IDS, * AVFMT_GENERIC_INDEX, AVFMT_TS_DISCONT, AVFMT_NOBINSEARCH, - * AVFMT_NOGENSEARCH. + * AVFMT_NOGENSEARCH, AVFMT_NO_BYTE_SEEK. */ int flags; |