Revision e356fc57 libavformat/rdt.c

View differences:

libavformat/rdt.c
161 161
        num = avio_rb16(&pb);
162 162
        if (rule_nr < 0 || rule_nr >= num)
163 163
            return -1;
164
        url_fskip(&pb, rule_nr * 2);
164
        avio_seek(&pb, rule_nr * 2, SEEK_CUR);
165 165
        chunk_nr = avio_rb16(&pb);
166
        url_fskip(&pb, (num - 1 - rule_nr) * 2);
166
        avio_seek(&pb, (num - 1 - rule_nr) * 2, SEEK_CUR);
167 167

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

Also available in: Unified diff