Revision 79d6b9cb

View differences:

libavformat/avidec.c
778 778
        //parse ##dc/##wb
779 779
        if(n < s->nb_streams){
780 780
          AVStream *st;
781
          AVStream *st1  = s->streams[1];
782
          AVIStream *ast1= st1->priv_data;
783 781
          AVIStream *ast;
784 782
          st = s->streams[n];
785 783
          ast = st->priv_data;
786 784

  
787 785

  
786
            if(s->nb_streams>=2){
787
                AVStream *st1  = s->streams[1];
788
                AVIStream *ast1= st1->priv_data;
788 789
            //workaround for broken small-file-bug402.avi
789 790
            if(   d[2] == 'w' && d[3] == 'b'
790 791
               && n==0
791
               && s->nb_streams>=2
792 792
               && st ->codec->codec_type == CODEC_TYPE_VIDEO
793 793
               && st1->codec->codec_type == CODEC_TYPE_AUDIO
794 794
               && ast->prefix == 'd'*256+'c'
......
799 799
                ast = ast1;
800 800
                av_log(s, AV_LOG_WARNING, "Invalid stream+prefix combination, assuming audio\n");
801 801
            }
802
            }
802 803

  
803 804

  
804 805
          if(   (st->discard >= AVDISCARD_DEFAULT && size==0)

Also available in: Unified diff