Revision d7a5106e

View differences:

libavformat/asfdec.c
425 425
            get_tag(s, "copyright", 0, len3);
426 426
            get_tag(s, "comment"  , 0, len4);
427 427
            url_fskip(pb, len5);
428
        } else if (!ff_guidcmp(&g, &stream_bitrate_guid)) {
429
            int stream_count = get_le16(pb);
430
            int j;
431

  
432
//            av_log(s, AV_LOG_ERROR, "stream bitrate properties\n");
433
//            av_log(s, AV_LOG_ERROR, "streams %d\n", streams);
434
            for(j = 0; j < stream_count; j++) {
435
                int flags, bitrate, stream_id;
436

  
437
                flags= get_le16(pb);
438
                bitrate= get_le32(pb);
439
                stream_id= (flags & 0x7f);
440
//                av_log(s, AV_LOG_ERROR, "flags: 0x%x stream id %d, bitrate %d\n", flags, stream_id, bitrate);
441
                asf->stream_bitrates[stream_id]= bitrate;
442
            }
443 428
        } else if (!ff_guidcmp(&g, &ff_asf_language_guid)) {
444 429
            int j;
445 430
            int stream_count = get_le16(pb);

Also available in: Unified diff