summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-04 04:01:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-04 04:04:24 +0200
commite10f5bd05cec8fe59bb43fd28c4c2a092ca5f440 (patch)
tree9842f500f02a60396c51bf34fdd0f6203e47da24 /libavformat/avformat.h
parent1c0d8f2563cc2a5b3ce78056572a7ee40b0f5987 (diff)
avformat: Add a mechanism to allow demuxers to detect byte based seeking.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 57603031a4..80d693a113 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1257,6 +1257,14 @@ typedef struct AVFormatContext {
*/
#define RAW_PACKET_BUFFER_SIZE 2500000
int raw_packet_buffer_remaining_size;
+
+ /**
+ * IO repositioned flag.
+ * This is set by avformat when the underlaying IO context read pointer
+ * is repositioned, for example when doing byte based seeking.
+ * Demuxers can use the flag to detect such changes.
+ */
+ int io_repositioned;
} AVFormatContext;
/**