Revision 45a8a02a libavformat/id3v2.c

View differences:

libavformat/id3v2.c
217 217
    unsync = flags & 0x80;
218 218

  
219 219
    if (isv34 && flags & 0x40) /* Extended header present, just skip over it */
220
        avio_seek(s->pb, get_size(s->pb, 4), SEEK_CUR);
220
        avio_skip(s->pb, get_size(s->pb, 4));
221 221

  
222 222
    while (len >= taghdrlen) {
223 223
        unsigned int tflags;
......
251 251

  
252 252
        if (tflags & (ID3v2_FLAG_ENCRYPTION | ID3v2_FLAG_COMPRESSION)) {
253 253
            av_log(s, AV_LOG_WARNING, "Skipping encrypted/compressed ID3v2 frame %s.\n", tag);
254
            avio_seek(s->pb, tlen, SEEK_CUR);
254
            avio_skip(s->pb, tlen);
255 255
        } else if (tag[0] == 'T') {
256 256
            if (unsync || tunsync) {
257 257
                int i, j;
......
272 272
        else if (!tag[0]) {
273 273
            if (tag[1])
274 274
                av_log(s, AV_LOG_WARNING, "invalid frame id, assuming padding");
275
            avio_seek(s->pb, tlen, SEEK_CUR);
275
            avio_skip(s->pb, tlen);
276 276
            break;
277 277
        }
278 278
        /* Skip to end of tag */
......
281 281

  
282 282
    if (len > 0) {
283 283
        /* Skip padding */
284
        avio_seek(s->pb, len, SEEK_CUR);
284
        avio_skip(s->pb, len);
285 285
    }
286 286
    if (version == 4 && flags & 0x10) /* Footer preset, always 10 bytes, skip over it */
287
        avio_seek(s->pb, 10, SEEK_CUR);
287
        avio_skip(s->pb, 10);
288 288

  
289 289
    av_free(buffer);
290 290
    return;

Also available in: Unified diff