summaryrefslogtreecommitdiff
path: root/libavformat/avio_internal.h
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2021-10-18 00:35:48 +0300
committerJan Ekström <jeebjp@gmail.com>2021-10-24 13:04:39 +0300
commit682bafdb12507ec8b049ecbbe2e48bf814927002 (patch)
treec2e7df981e2c02d9f5013d8f2d2242f131bfad77 /libavformat/avio_internal.h
parenta5622ed16f8e22a80cecd8936799e61f61a74cd5 (diff)
avformat/avio{,buf}: introduce public AVIOContext::bytes_{read,written}
Such fields can be seen as generally useful in cases where the API user is not implementing custom AVIO callbacks, but still would like to know if data is being read or written out, such as in case data is being read from input but no AVPacket has been received yet.
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r--libavformat/avio_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h
index 467e80701f..187433f283 100644
--- a/libavformat/avio_internal.h
+++ b/libavformat/avio_internal.h
@@ -52,6 +52,11 @@ typedef struct FFIOContext {
int64_t bytes_read;
/**
+ * Bytes written statistic
+ */
+ int64_t bytes_written;
+
+ /**
* seek statistic
*/
int seek_count;