Revision b7effd4e libavformat/xa.c

View differences:

libavformat/xa.c
77 77
    st->codec->codec_type   = AVMEDIA_TYPE_AUDIO;
78 78
    st->codec->codec_id     = CODEC_ID_ADPCM_EA_MAXIS_XA;
79 79
    url_fskip(pb, 4);       /* Skip the XA ID */
80
    xa->out_size            =  get_le32(pb);
80
    xa->out_size            =  avio_rl32(pb);
81 81
    url_fskip(pb, 2);       /* Skip the tag */
82
    st->codec->channels     = get_le16(pb);
83
    st->codec->sample_rate  = get_le32(pb);
82
    st->codec->channels     = avio_rl16(pb);
83
    st->codec->sample_rate  = avio_rl32(pb);
84 84
    /* Value in file is average byte rate*/
85
    st->codec->bit_rate     = get_le32(pb) * 8;
86
    st->codec->block_align  = get_le16(pb);
87
    st->codec->bits_per_coded_sample = get_le16(pb);
85
    st->codec->bit_rate     = avio_rl32(pb) * 8;
86
    st->codec->block_align  = avio_rl16(pb);
87
    st->codec->bits_per_coded_sample = avio_rl16(pb);
88 88

  
89 89
    av_set_pts_info(st, 64, 1, st->codec->sample_rate);
90 90

  

Also available in: Unified diff