lavf: fix avio statistics for packets directly read without the buffer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2626cc4580
commit
4b9e44868b
@ -485,6 +485,7 @@ int avio_read(AVIOContext *s, unsigned char *buf, int size)
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
s->pos += len;
|
s->pos += len;
|
||||||
|
s->bytes_read += len;
|
||||||
size -= len;
|
size -= len;
|
||||||
buf += len;
|
buf += len;
|
||||||
s->buf_ptr = s->buffer;
|
s->buf_ptr = s->buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user