[FFmpeg-cvslog] r15799 - trunk/libavformat/aviobuf.c

henry subversion
Mon Nov 10 22:41:36 CET 2008


Author: henry
Date: Mon Nov 10 22:41:35 2008
New Revision: 15799

Log:
always use the whole buffer for reading w/ packetized sources to avoid packet truncation

Modified:
   trunk/libavformat/aviobuf.c

Modified: trunk/libavformat/aviobuf.c
==============================================================================
--- trunk/libavformat/aviobuf.c	(original)
+++ trunk/libavformat/aviobuf.c	Mon Nov 10 22:41:35 2008
@@ -290,7 +290,7 @@ void put_tag(ByteIOContext *s, const cha
 
 static void fill_buffer(ByteIOContext *s)
 {
-    uint8_t *dst= s->buf_end - s->buffer < s->buffer_size ? s->buf_ptr : s->buffer;
+    uint8_t *dst= !s->max_packet_size && s->buf_end - s->buffer < s->buffer_size ? s->buf_ptr : s->buffer;
     int len= s->buffer_size - (dst - s->buffer);
 
     assert(s->buf_ptr == s->buf_end);




More information about the ffmpeg-cvslog mailing list