Revision e356fc57 libavformat/wav.c

View differences:

libavformat/wav.c
217 217
        avio_rl64(pb); /* RIFF size */
218 218
        data_size = avio_rl64(pb);
219 219
        sample_count = avio_rl64(pb);
220
        url_fskip(pb, size - 16); /* skip rest of ds64 chunk */
220
        avio_seek(pb, size - 16, SEEK_CUR); /* skip rest of ds64 chunk */
221 221
    }
222 222

  
223 223
    /* parse fmt header */
......
276 276
            return -1;
277 277
        if (!memcmp(guid, guid1, 16))
278 278
            return size;
279
        url_fskip(pb, FFALIGN(size, INT64_C(8)) - 24);
279
        avio_seek(pb, FFALIGN(size, INT64_C(8)) - 24, SEEK_CUR);
280 280
    }
281 281
    return -1;
282 282
}
......
410 410

  
411 411
    /* subtract chunk header size - normal wav file doesn't count it */
412 412
    ff_get_wav_header(pb, st->codec, size - 24);
413
    url_fskip(pb, FFALIGN(size, INT64_C(8)) - size);
413
    avio_seek(pb, FFALIGN(size, INT64_C(8)) - size, SEEK_CUR);
414 414

  
415 415
    st->need_parsing = AVSTREAM_PARSE_FULL;
416 416

  

Also available in: Unified diff