Revision b67f3d65

View differences:

ffmpeg.c
664 664
    if (err < 0)
665 665
        return err;
666 666
    /* copy stream format */
667
    s->nb_streams = ic->nb_streams;
667
    s->nb_streams = 0;
668 668
    for(i=0;i<ic->nb_streams;i++) {
669 669
        AVStream *st;
670 670
        AVCodec *codec;
671 671

  
672
        s->nb_streams++;
673

  
672 674
        // FIXME: a more elegant solution is needed
673 675
        st = av_mallocz(sizeof(AVStream));
674 676
        memcpy(st, ic->streams[i], sizeof(AVStream));
......
700 702

  
701 703
        if(st->codec->flags & CODEC_FLAG_BITEXACT)
702 704
            nopts = 1;
705

  
706
        new_output_stream(s, nb_output_files);
703 707
    }
704 708

  
705 709
    if (!nopts)

Also available in: Unified diff