]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avio_internal.h
Merge commit 'f1fa1eed2abdc8dfb0af318a43f5d293b81141bd'
[ffmpeg] / libavformat / avio_internal.h
index 1ed5831e788261702429ca01866fae925795fc10..ad505673c4dfac4c42f2e4cb334ecb4d3e91b4aa 100644 (file)
@@ -85,6 +85,13 @@ int ffio_rewind_with_probe_data(AVIOContext *s, unsigned char **buf, int buf_siz
 
 uint64_t ffio_read_varlen(AVIOContext *bc);
 
+/**
+ * Read size bytes from AVIOContext into buf.
+ * Check that exactly size bytes have been read.
+ * @return number of bytes read or AVERROR
+ */
+int ffio_read_size(AVIOContext *s, unsigned char *buf, int size);
+
 /** @warning must be called before any I/O */
 int ffio_set_buf_size(AVIOContext *s, int buf_size);