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;
|
||||
} else {
|
||||
s->pos += len;
|
||||
s->bytes_read += len;
|
||||
size -= len;
|
||||
buf += len;
|
||||
s->buf_ptr = s->buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user