From 4b9e44868b50f9325d2af11c0c2d9afb3c1ce7d8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 25 Aug 2012 23:24:21 +0200 Subject: [PATCH] lavf: fix avio statistics for packets directly read without the buffer. Signed-off-by: Michael Niedermayer --- libavformat/aviobuf.c | 1 + 1 file changed, 1 insertion(+) 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;