Revision 602dd8f6

View differences:

libavformat/aviobuf.c
263 263

  
264 264
static void fill_buffer(ByteIOContext *s)
265 265
{
266
    int len;
266
    int len=0;
267 267

  
268 268
    /* no need to do anything if EOF already reached */
269 269
    if (s->eof_reached)
......
275 275
        s->checksum_ptr= s->buffer;
276 276
    }
277 277

  
278
    if(s->read_packet)
278 279
    len = s->read_packet(s->opaque, s->buffer, s->buffer_size);
279 280
    if (len <= 0) {
280 281
        /* do not modify buffer if EOF reached so that a seek back can
......
341 342
            len = size;
342 343
        if (len == 0) {
343 344
            if(size > s->buffer_size && !s->update_checksum){
345
                if(s->read_packet)
344 346
                len = s->read_packet(s->opaque, buf, size);
345 347
                if (len <= 0) {
346 348
                    /* do not modify buffer if EOF reached so that a seek back can

Also available in: Unified diff