Revision b7effd4e libavformat/mtv.c

View differences:

libavformat/mtv.c
84 84
    unsigned int    audio_subsegments;
85 85

  
86 86
    url_fskip(pb, 3);
87
    mtv->file_size         = get_le32(pb);
88
    mtv->segments          = get_le32(pb);
87
    mtv->file_size         = avio_rl32(pb);
88
    mtv->segments          = avio_rl32(pb);
89 89
    url_fskip(pb, 32);
90
    mtv->audio_identifier  = get_le24(pb);
91
    mtv->audio_br          = get_le16(pb);
92
    mtv->img_colorfmt      = get_le24(pb);
93
    mtv->img_bpp           = get_byte(pb);
94
    mtv->img_width         = get_le16(pb);
95
    mtv->img_height        = get_le16(pb);
96
    mtv->img_segment_size  = get_le16(pb);
90
    mtv->audio_identifier  = avio_rl24(pb);
91
    mtv->audio_br          = avio_rl16(pb);
92
    mtv->img_colorfmt      = avio_rl24(pb);
93
    mtv->img_bpp           = avio_r8(pb);
94
    mtv->img_width         = avio_rl16(pb);
95
    mtv->img_height        = avio_rl16(pb);
96
    mtv->img_segment_size  = avio_rl16(pb);
97 97

  
98 98
    /* Calculate width and height if missing from header */
99 99

  
......
106 106
                        / mtv->img_width;
107 107

  
108 108
    url_fskip(pb, 4);
109
    audio_subsegments = get_le16(pb);
109
    audio_subsegments = avio_rl16(pb);
110 110
    mtv->full_segment_size =
111 111
        audio_subsegments * (MTV_AUDIO_PADDING_SIZE + MTV_ASUBCHUNK_DATA_SIZE) +
112 112
        mtv->img_segment_size;

Also available in: Unified diff