Revision f59d8ff8 libavformat/sauce.c

View differences:

libavformat/sauce.c
35 35
    int datatype, filetype, t1, t2, nb_comments, flags;
36 36
    uint64_t start_pos = url_fsize(pb) - 128;
37 37

  
38
    url_fseek(pb, start_pos, SEEK_SET);
38
    avio_seek(pb, start_pos, SEEK_SET);
39 39
    if (avio_read(pb, buf, 7) != 7)
40 40
        return -1;
41 41
    if (memcmp(buf, "SAUCE00", 7))
......
82 82
    *fsize -= 128;
83 83

  
84 84
    if (nb_comments > 0) {
85
        url_fseek(pb, start_pos - 64*nb_comments - 5, SEEK_SET);
85
        avio_seek(pb, start_pos - 64*nb_comments - 5, SEEK_SET);
86 86
        if (avio_read(pb, buf, 5) == 5 && !memcmp(buf, "COMNT", 5)) {
87 87
            int i;
88 88
            char *str = av_malloc(65*nb_comments + 1);

Also available in: Unified diff