Revision b7b22558

View differences:

libavformat/avidec.c
429 429
            break;
430 430
        case MKTAG('i', 'n', 'd', 'x'):
431 431
            i= url_ftell(pb);
432
            read_braindead_odml_indx(s, 0);
433
            avi->index_loaded=1;
432
            if(!url_is_streamed(pb)){
433
                read_braindead_odml_indx(s, 0);
434
                avi->index_loaded=1;
435
            }
434 436
            url_fseek(pb, i+size, SEEK_SET);
435 437
            break;
436 438
        default:
......
451 453
        return -1;
452 454
    }
453 455

  
454
    if(!avi->index_loaded)
456
    if(!avi->index_loaded && !url_is_streamed(pb))
455 457
        avi_load_index(s);
456 458
    avi->index_loaded = 1;
457 459
    avi->non_interleaved |= guess_ni_flag(s);

Also available in: Unified diff