Revision bc3a73bc libavformat/avidec.c

View differences:

libavformat/avidec.c
674 674
    for(i=sync=url_ftell(pb); !url_feof(pb); i++) {
675 675
        int j;
676 676

  
677
        if (i >= avi->movi_end) {
678
            if (avi->is_odml) {
679
                url_fskip(pb, avi->riff_end - i);
680
                avi->riff_end = avi->movi_end = url_fsize(pb);
681
            } else
682
                break;
683
        }
684

  
685 677
        for(j=0; j<7; j++)
686 678
            d[j]= d[j+1];
687 679
        d[7]= get_byte(pb);
......
701 693
        //parse ix##
702 694
        if(  (d[0] == 'i' && d[1] == 'x' && n < s->nb_streams)
703 695
        //parse JUNK
704
           ||(d[0] == 'J' && d[1] == 'U' && d[2] == 'N' && d[3] == 'K')){
696
           ||(d[0] == 'J' && d[1] == 'U' && d[2] == 'N' && d[3] == 'K')
697
           ||(d[0] == 'i' && d[1] == 'd' && d[2] == 'x' && d[3] == '1')){
705 698
            url_fskip(pb, size);
706 699
//av_log(NULL, AV_LOG_DEBUG, "SKIP\n");
707 700
            goto resync;

Also available in: Unified diff