aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-25 23:24:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-25 23:25:36 +0200
commit4b9e44868b50f9325d2af11c0c2d9afb3c1ce7d8 (patch)
tree6afe27d15412bd57ed663d9c6d44217768c6d5c1
parent2626cc4580bfd560c6983338d77b2c11c16af94f (diff)
downloadffmpeg-4b9e44868b50f9325d2af11c0c2d9afb3c1ce7d8.tar.gz
lavf: fix avio statistics for packets directly read without the buffer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/aviobuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 13b3c863e3..f1ac24e844 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -485,6 +485,7 @@ int avio_read(AVIOContext *s, unsigned char *buf, int size)
break;
} else {
s->pos += len;
+ s->bytes_read += len;
size -= len;
buf += len;
s->buf_ptr = s->buffer;