Revision f59d8ff8 libavformat/filmstripdec.c

View differences:

libavformat/filmstripdec.c
43 43
    if (url_is_streamed(s->pb))
44 44
        return AVERROR(EIO);
45 45

  
46
    url_fseek(pb, url_fsize(pb) - 36, SEEK_SET);
46
    avio_seek(pb, url_fsize(pb) - 36, SEEK_SET);
47 47
    if (avio_rb32(pb) != RAND_TAG) {
48 48
        av_log(s, AV_LOG_ERROR, "magic number not found");
49 49
        return AVERROR_INVALIDDATA;
......
69 69
    film->leading         = avio_rb16(pb);
70 70
    av_set_pts_info(st, 64, 1, avio_rb16(pb));
71 71

  
72
    url_fseek(pb, 0, SEEK_SET);
72
    avio_seek(pb, 0, SEEK_SET);
73 73

  
74 74
    return 0;
75 75
}
......
94 94
static int read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
95 95
{
96 96
    AVStream *st = s->streams[stream_index];
97
    url_fseek(s->pb, FFMAX(timestamp, 0) * st->codec->width * st->codec->height * 4, SEEK_SET);
97
    avio_seek(s->pb, FFMAX(timestamp, 0) * st->codec->width * st->codec->height * 4, SEEK_SET);
98 98
    return 0;
99 99
}
100 100

  

Also available in: Unified diff