From 11153a9371a84d881809f43e60830d3ed8ae60b9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 Jun 2012 23:01:13 +0200 Subject: avio: Collect and print statistics of bytes read & seeks Signed-off-by: Michael Niedermayer --- libavformat/avio.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavformat/avio.h') diff --git a/libavformat/avio.h b/libavformat/avio.h index 260bdd95d0..9e9a763eff 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -128,6 +128,18 @@ typedef struct { * call the underlying seek function directly. */ int direct; + + /** + * Bytes read statistic + * This field is internal to libavformat and access from outside is not allowed. + */ + int64_t bytes_read; + + /** + * seek statistic + * This field is internal to libavformat and access from outside is not allowed. + */ + int seek_count; } AVIOContext; /* unbuffered I/O */ -- cgit v1.2.3