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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Michael Niedermayer 13 years ago
parent 2626cc4580
commit 4b9e44868b
  1. 1
      libavformat/aviobuf.c

@ -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…
Cancel
Save