Revision f59d8ff8 libavformat/sierravmd.c

View differences:

libavformat/sierravmd.c
95 95
    int sound_buffers;
96 96

  
97 97
    /* fetch the main header, including the 2 header length bytes */
98
    url_fseek(pb, 0, SEEK_SET);
98
    avio_seek(pb, 0, SEEK_SET);
99 99
    if (avio_read(pb, vmd->vmd_header, VMD_HEADER_SIZE) != VMD_HEADER_SIZE)
100 100
        return AVERROR(EIO);
101 101

  
......
155 155
    toc_offset = AV_RL32(&vmd->vmd_header[812]);
156 156
    vmd->frame_count = AV_RL16(&vmd->vmd_header[6]);
157 157
    vmd->frames_per_block = AV_RL16(&vmd->vmd_header[18]);
158
    url_fseek(pb, toc_offset, SEEK_SET);
158
    avio_seek(pb, toc_offset, SEEK_SET);
159 159

  
160 160
    raw_frame_table = NULL;
161 161
    vmd->frame_table = NULL;
......
243 243

  
244 244
    frame = &vmd->frame_table[vmd->current_frame];
245 245
    /* position the stream (will probably be there already) */
246
    url_fseek(pb, frame->frame_offset, SEEK_SET);
246
    avio_seek(pb, frame->frame_offset, SEEK_SET);
247 247

  
248 248
    if (av_new_packet(pkt, frame->frame_size + BYTES_PER_FRAME_RECORD))
249 249
        return AVERROR(ENOMEM);

Also available in: Unified diff