Revision 7c725380

View differences:

libavformat/asfdec.c
193 193
    ASFStream *asf_st;
194 194
    int size, i;
195 195
    int64_t gsize;
196
    uint32_t bitrate[128];
197

  
198
    memset(bitrate, 0, sizeof(bitrate));
199 196

  
200 197
    ff_get_guid(pb, &g);
201 198
    if (ff_guidcmp(&g, &ff_asf_header))
......
532 529
            payload_ext_ct = get_le16(pb); //payload-extension-system-count
533 530

  
534 531
            if (stream_num < 128)
535
                bitrate[stream_num] = leak_rate;
532
                asf->stream_bitrates[stream_num] = leak_rate;
536 533

  
537 534
            for (i=0; i<stream_ct; i++){
538 535
                get_le16(pb);
......
615 612
        if(stream_num>=0){
616 613
            AVStream *st = s->streams[stream_num];
617 614
            if (!st->codec->bit_rate)
618
                st->codec->bit_rate = bitrate[i];
615
                st->codec->bit_rate = asf->stream_bitrates[i];
619 616
            if (asf->dar[i].num > 0 && asf->dar[i].den > 0){
620 617
                av_reduce(&st->sample_aspect_ratio.num,
621 618
                          &st->sample_aspect_ratio.den,

Also available in: Unified diff