Commit 4b9e4486 authored by Michael Niedermayer's avatar Michael Niedermayer

lavf: fix avio statistics for packets directly read without the buffer.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2626cc45
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment