Revision f59d8ff8 libavformat/r3d.c

View differences:

libavformat/r3d.c
180 180
    if (url_is_streamed(s->pb))
181 181
        return 0;
182 182
    // find REOB/REOF/REOS to load index
183
    url_fseek(s->pb, url_fsize(s->pb)-48-8, SEEK_SET);
183
    avio_seek(s->pb, url_fsize(s->pb)-48-8, SEEK_SET);
184 184
    if (read_atom(s, &atom) < 0)
185 185
        av_log(s, AV_LOG_ERROR, "error reading end atom\n");
186 186

  
......
192 192
    r3d_read_reos(s);
193 193

  
194 194
    if (r3d->rdvo_offset) {
195
        url_fseek(s->pb, r3d->rdvo_offset, SEEK_SET);
195
        avio_seek(s->pb, r3d->rdvo_offset, SEEK_SET);
196 196
        if (read_atom(s, &atom) < 0)
197 197
            av_log(s, AV_LOG_ERROR, "error reading 'rdvo' atom\n");
198 198
        if (atom.tag == MKTAG('R','D','V','O')) {
......
202 202
    }
203 203

  
204 204
 out:
205
    url_fseek(s->pb, s->data_offset, SEEK_SET);
205
    avio_seek(s->pb, s->data_offset, SEEK_SET);
206 206
    return 0;
207 207
}
208 208

  
......
359 359
    av_dlog(s, "seek frame num %d timestamp %lld\n", frame_num, sample_time);
360 360

  
361 361
    if (frame_num < r3d->video_offsets_count) {
362
        url_fseek(s->pb, r3d->video_offsets_count, SEEK_SET);
362
        avio_seek(s->pb, r3d->video_offsets_count, SEEK_SET);
363 363
    } else {
364 364
        av_log(s, AV_LOG_ERROR, "could not seek to frame %d\n", frame_num);
365 365
        return -1;

Also available in: Unified diff