Revision 72415b2a libavformat/riff.c

View differences:

libavformat/riff.c
461 461
    int id;
462 462

  
463 463
    id = get_le16(pb);
464
    codec->codec_type = CODEC_TYPE_AUDIO;
464
    codec->codec_type = AVMEDIA_TYPE_AUDIO;
465 465
    codec->codec_tag = id;
466 466
    codec->channels = get_le16(pb);
467 467
    codec->sample_rate = get_le32(pb);
......
527 527
    if(stream->frame_size && stream->sample_rate){
528 528
        *au_scale=stream->frame_size;
529 529
        *au_rate= stream->sample_rate;
530
    }else if(stream->codec_type == CODEC_TYPE_VIDEO ||
531
             stream->codec_type == CODEC_TYPE_SUBTITLE){
530
    }else if(stream->codec_type == AVMEDIA_TYPE_VIDEO ||
531
             stream->codec_type == AVMEDIA_TYPE_SUBTITLE){
532 532
        *au_scale= stream->time_base.num;
533 533
        *au_rate = stream->time_base.den;
534 534
    }else{

Also available in: Unified diff