lavf: fix avio statistics for packets directly read without the buffer.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 25 Aug 2012 21:24:21 +0000 (23:24 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 25 Aug 2012 21:25:36 +0000 (23:25 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/aviobuf.c

index 13b3c86..f1ac24e 100644 (file)
@@ -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;