Revision f59d8ff8 libavformat/wv.c

View differences:

libavformat/wv.c
175 175
            av_log(ctx, AV_LOG_ERROR, "Cannot determine custom sampling rate\n");
176 176
            return -1;
177 177
        }
178
        url_fseek(pb, block_end - wc->blksize + 24, SEEK_SET);
178
        avio_seek(pb, block_end - wc->blksize + 24, SEEK_SET);
179 179
    }
180 180
    if(!wc->bpp) wc->bpp = bpp;
181 181
    if(!wc->chan) wc->chan = chan;
......
228 228
        ff_ape_parse_tag(s);
229 229
        if(!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
230 230
            ff_id3v1_read(s);
231
        url_fseek(s->pb, cur, SEEK_SET);
231
        avio_seek(s->pb, cur, SEEK_SET);
232 232
    }
233 233

  
234 234
    return 0;
......
320 320
    /* if found, seek there */
321 321
    if (index >= 0){
322 322
        wc->block_parsed = 1;
323
        url_fseek(s->pb, st->index_entries[index].pos, SEEK_SET);
323
        avio_seek(s->pb, st->index_entries[index].pos, SEEK_SET);
324 324
        return 0;
325 325
    }
326 326
    /* if timestamp is out of bounds, return error */
......
331 331
    do{
332 332
        ret = av_read_frame(s, pkt);
333 333
        if (ret < 0){
334
            url_fseek(s->pb, pos, SEEK_SET);
334
            avio_seek(s->pb, pos, SEEK_SET);
335 335
            return -1;
336 336
        }
337 337
        pts = pkt->pts;

Also available in: Unified diff