Revision 62d0a745 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
468 468

  
469 469
static void fill_buffer(AVIOContext *s)
470 470
{
471
    uint8_t *dst= !s->max_packet_size && s->buf_end - s->buffer < s->buffer_size ? s->buf_ptr : s->buffer;
471
    uint8_t *dst= !s->max_packet_size && s->buf_end - s->buffer < s->buffer_size ? s->buf_end : s->buffer;
472 472
    int len= s->buffer_size - (dst - s->buffer);
473 473
    int max_buffer_size = s->max_packet_size ? s->max_packet_size : IO_BUFFER_SIZE;
474 474

  

Also available in: Unified diff