[FFmpeg-cvslog] lavf: fix avio statistics for packets directly read without the buffer.

Michael Niedermayer git at videolan.org
Sat Aug 25 23:31:39 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 25 23:24:21 2012 +0200| [4b9e44868b50f9325d2af11c0c2d9afb3c1ce7d8] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b9e44868b50f9325d2af11c0c2d9afb3c1ce7d8
---

 libavformat/aviobuf.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 13b3c86..f1ac24e 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;



More information about the ffmpeg-cvslog mailing list