diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-26 01:24:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-26 01:25:36 +0400 |
commit | 4b9e44868b50f9325d2af11c0c2d9afb3c1ce7d8 (patch) | |
tree | 6afe27d15412bd57ed663d9c6d44217768c6d5c1 /libavformat/aviobuf.c | |
parent | 2626cc4580bfd560c6983338d77b2c11c16af94f (diff) |
lavf: fix avio statistics for packets directly read without the buffer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 1 |
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; |