Revision a2704c97 libavformat/smacker.c

View differences:

libavformat/smacker.c
219 219
    ((int32_t*)st->codec->extradata)[3] = av_le2ne32(smk->type_size);
220 220

  
221 221
    smk->curstream = -1;
222
    smk->nextpos = url_ftell(pb);
222
    smk->nextpos = avio_tell(pb);
223 223

  
224 224
    return 0;
225 225
}
......
244 244
        frame_size = smk->frm_size[smk->cur_frame] & (~3);
245 245
        flags = smk->frm_flags[smk->cur_frame];
246 246
        /* handle palette change event */
247
        pos = url_ftell(s->pb);
247
        pos = avio_tell(s->pb);
248 248
        if(flags & SMACKER_PAL){
249 249
            int size, sz, t, off, j, pos;
250 250
            uint8_t *pal = smk->pal;
......
256 256
            frame_size -= size;
257 257
            frame_size--;
258 258
            sz = 0;
259
            pos = url_ftell(s->pb) + size;
259
            pos = avio_tell(s->pb) + size;
260 260
            while(sz < 256){
261 261
                t = avio_r8(s->pb);
262 262
                if(t & 0x80){ /* skip palette entries */
......
313 313
        pkt->stream_index = smk->videoindex;
314 314
        pkt->size = ret + 769;
315 315
        smk->cur_frame++;
316
        smk->nextpos = url_ftell(s->pb);
316
        smk->nextpos = avio_tell(s->pb);
317 317
    } else {
318 318
        if (av_new_packet(pkt, smk->buf_sizes[smk->curstream]))
319 319
            return AVERROR(ENOMEM);

Also available in: Unified diff