Revision f59d8ff8 libavformat/tiertexseq.c

View differences:

libavformat/tiertexseq.c
83 83
    int i, sz;
84 84
    TiertexSeqFrameBuffer *seq_buffer;
85 85

  
86
    url_fseek(pb, 256, SEEK_SET);
86
    avio_seek(pb, 256, SEEK_SET);
87 87

  
88 88
    for (i = 0; i < SEQ_NUM_FRAME_BUFFERS; i++) {
89 89
        sz = avio_rl16(pb);
......
113 113
    if (seq_buffer->fill_size + data_size > seq_buffer->data_size || data_size <= 0)
114 114
        return AVERROR_INVALIDDATA;
115 115

  
116
    url_fseek(pb, seq->current_frame_offs + data_offs, SEEK_SET);
116
    avio_seek(pb, seq->current_frame_offs + data_offs, SEEK_SET);
117 117
    if (avio_read(pb, seq_buffer->data + seq_buffer->fill_size, data_size) != data_size)
118 118
        return AVERROR(EIO);
119 119

  
......
128 128
    int i, e, err;
129 129

  
130 130
    seq->current_frame_offs += SEQ_FRAME_SIZE;
131
    url_fseek(pb, seq->current_frame_offs, SEEK_SET);
131
    avio_seek(pb, seq->current_frame_offs, SEEK_SET);
132 132

  
133 133
    /* sound data */
134 134
    seq->current_audio_data_offs = avio_rl16(pb);
......
256 256
            pkt->data[0] = 0;
257 257
            if (seq->current_pal_data_size) {
258 258
                pkt->data[0] |= 1;
259
                url_fseek(pb, seq->current_frame_offs + seq->current_pal_data_offs, SEEK_SET);
259
                avio_seek(pb, seq->current_frame_offs + seq->current_pal_data_offs, SEEK_SET);
260 260
                if (avio_read(pb, &pkt->data[1], seq->current_pal_data_size) != seq->current_pal_data_size)
261 261
                    return AVERROR(EIO);
262 262
            }
......
279 279
    if (seq->current_audio_data_offs == 0) /* end of data reached */
280 280
        return AVERROR(EIO);
281 281

  
282
    url_fseek(pb, seq->current_frame_offs + seq->current_audio_data_offs, SEEK_SET);
282
    avio_seek(pb, seq->current_frame_offs + seq->current_audio_data_offs, SEEK_SET);
283 283
    rc = av_get_packet(pb, pkt, seq->current_audio_data_size);
284 284
    if (rc < 0)
285 285
        return rc;

Also available in: Unified diff