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;