Revision a2704c97 libavformat/segafilm.c

View differences:

libavformat/segafilm.c
222 222
    /* do a special song and dance when loading FILM Cinepak chunks */
223 223
    if ((sample->stream == film->video_stream_index) &&
224 224
        (film->video_type == CODEC_ID_CINEPAK)) {
225
        pkt->pos= url_ftell(pb);
225
        pkt->pos= avio_tell(pb);
226 226
        if (av_new_packet(pkt, sample->sample_size))
227 227
            return AVERROR(ENOMEM);
228 228
        avio_read(pb, pkt->data, sample->sample_size);
......
240 240
            film->stereo_buffer = av_malloc(film->stereo_buffer_size);
241 241
        }
242 242

  
243
        pkt->pos= url_ftell(pb);
243
        pkt->pos= avio_tell(pb);
244 244
        ret = avio_read(pb, film->stereo_buffer, sample->sample_size);
245 245
        if (ret != sample->sample_size)
246 246
            ret = AVERROR(EIO);

Also available in: Unified diff