Revision f59d8ff8 libavformat/anm.c

View differences:

libavformat/anm.c
143 143
        goto close_and_return;
144 144

  
145 145
    /* read page table */
146
    ret = url_fseek(pb, anm->page_table_offset, SEEK_SET);
146
    ret = avio_seek(pb, anm->page_table_offset, SEEK_SET);
147 147
    if (ret < 0)
148 148
        goto close_and_return;
149 149

  
......
192 192

  
193 193
    /* parse page header */
194 194
    if (anm->record < 0) {
195
        url_fseek(pb, anm->page_table_offset + MAX_PAGES*6 + (anm->page<<16), SEEK_SET);
195
        avio_seek(pb, anm->page_table_offset + MAX_PAGES*6 + (anm->page<<16), SEEK_SET);
196 196
        url_fskip(pb, 8 + 2*p->nb_records);
197 197
        anm->record = 0;
198 198
    }
......
209 209

  
210 210
    /* fetch record size */
211 211
    tmp = url_ftell(pb);
212
    url_fseek(pb, anm->page_table_offset + MAX_PAGES*6 + (anm->page<<16) +
212
    avio_seek(pb, anm->page_table_offset + MAX_PAGES*6 + (anm->page<<16) +
213 213
              8 + anm->record * 2, SEEK_SET);
214 214
    record_size = avio_rl16(pb);
215
    url_fseek(pb, tmp, SEEK_SET);
215
    avio_seek(pb, tmp, SEEK_SET);
216 216

  
217 217
    /* fetch record */
218 218
    pkt->size = av_get_packet(s->pb, pkt, record_size);

Also available in: Unified diff