Commit b398655e authored by henry's avatar henry

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15799 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9f195899
......@@ -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);
......
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