diff options
author | Jindřich Makovička <makovick@gmail.com> | 2008-11-10 21:41:35 +0000 |
---|---|---|
committer | Jindřich Makovička <makovick@gmail.com> | 2008-11-10 21:41:35 +0000 |
commit | f5edd874fa9dd5aadd47f4157bc791358294f76d (patch) | |
tree | 5339c6e933c432d837ceee4192a3cf9ed6841bfd | |
parent | 916ff02261f79e759d996c76670958276276bf2a (diff) | |
download | ffmpeg-f5edd874fa9dd5aadd47f4157bc791358294f76d.tar.gz |
always use the whole buffer for reading w/ packetized sources to avoid packet truncation
Originally committed as revision 15799 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/aviobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index 344664c191..e19e70beb4 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -290,7 +290,7 @@ void put_tag(ByteIOContext *s, const char *tag) 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); |