Revision b7effd4e libavformat/rdt.c

View differences:

libavformat/rdt.c
153 153
        return -1;
154 154
    ffio_init_context(&pb, rdt->mlti_data, rdt->mlti_data_size, 0,
155 155
                  NULL, NULL, NULL, NULL);
156
    tag = get_le32(&pb);
156
    tag = avio_rl32(&pb);
157 157
    if (tag == MKTAG('M', 'L', 'T', 'I')) {
158 158
        int num, chunk_nr;
159 159

  
160 160
        /* read index of MDPR chunk numbers */
161
        num = get_be16(&pb);
161
        num = avio_rb16(&pb);
162 162
        if (rule_nr < 0 || rule_nr >= num)
163 163
            return -1;
164 164
        url_fskip(&pb, rule_nr * 2);
165
        chunk_nr = get_be16(&pb);
165
        chunk_nr = avio_rb16(&pb);
166 166
        url_fskip(&pb, (num - 1 - rule_nr) * 2);
167 167

  
168 168
        /* read MDPR chunks */
169
        num = get_be16(&pb);
169
        num = avio_rb16(&pb);
170 170
        if (chunk_nr >= num)
171 171
            return -1;
172 172
        while (chunk_nr--)
173
            url_fskip(&pb, get_be32(&pb));
174
        size = get_be32(&pb);
173
            url_fskip(&pb, avio_rb32(&pb));
174
        size = avio_rb32(&pb);
175 175
    } else {
176 176
        size = rdt->mlti_data_size;
177 177
        url_fseek(&pb, 0, SEEK_SET);

Also available in: Unified diff