summaryrefslogtreecommitdiffstats
path: root/libavformat/avio_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-30 18:18:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-04 19:13:38 +0200
commit186ec1784336df11df48e646595e2ec646f82329 (patch)
tree517c54149f39834c172b7d00369002755a5fedc8 /libavformat/avio_internal.h
parent2ca48e466675a8a3630061cd2c15325eab8eda97 (diff)
downloadffmpeg-streaming-186ec1784336df11df48e646595e2ec646f82329.zip
ffmpeg-streaming-186ec1784336df11df48e646595e2ec646f82329.tar.gz
avformat/aviobuf: Add ffio_ensure_seekback()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r--libavformat/avio_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h
index cf36764..311e297 100644
--- a/libavformat/avio_internal.h
+++ b/libavformat/avio_internal.h
@@ -71,6 +71,15 @@ uint64_t ffio_read_varlen(AVIOContext *bc);
/** @warning must be called before any I/O */
int ffio_set_buf_size(AVIOContext *s, int buf_size);
+/**
+ * Ensures that the requested seekback buffer size will be available
+ *
+ * Will ensure that when reading sequentially up to buf_size, seeking
+ * within the current pos and pos+buf_size is possible.
+ * Once the stream position moves outside this window this gurantee is lost.
+ */
+int ffio_ensure_seekback(AVIOContext *s, int buf_size);
+
int ffio_limit(AVIOContext *s, int size);
void ffio_init_checksum(AVIOContext *s,
OpenPOWER on IntegriCloud