Commit f5edd874 authored by Jindřich Makovička's avatar Jindřich Makovička

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
parent 916ff022
...@@ -290,7 +290,7 @@ void put_tag(ByteIOContext *s, const char *tag) ...@@ -290,7 +290,7 @@ void put_tag(ByteIOContext *s, const char *tag)
static void fill_buffer(ByteIOContext *s) 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); int len= s->buffer_size - (dst - s->buffer);
assert(s->buf_ptr == s->buf_end); assert(s->buf_ptr == s->buf_end);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment