Revision e356fc57 libavformat/tta.c

View differences:

libavformat/tta.c
50 50
    if (avio_rl32(s->pb) != AV_RL32("TTA1"))
51 51
        return -1; // not tta file
52 52

  
53
    url_fskip(s->pb, 2); // FIXME: flags
53
    avio_seek(s->pb, 2, SEEK_CUR); // FIXME: flags
54 54
    channels = avio_rl16(s->pb);
55 55
    bps = avio_rl16(s->pb);
56 56
    samplerate = avio_rl32(s->pb);
......
65 65
        return -1;
66 66
    }
67 67

  
68
    url_fskip(s->pb, 4); // header crc
68
    avio_seek(s->pb, 4, SEEK_CUR); // header crc
69 69

  
70 70
    framelen = samplerate*256/245;
71 71
    c->totalframes = datalen / framelen + ((datalen % framelen) ? 1 : 0);
......
91 91
        av_add_index_entry(st, framepos, i*framelen, size, 0, AVINDEX_KEYFRAME);
92 92
        framepos += size;
93 93
    }
94
    url_fskip(s->pb, 4); // seektable crc
94
    avio_seek(s->pb, 4, SEEK_CUR); // seektable crc
95 95

  
96 96
    st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
97 97
    st->codec->codec_id = CODEC_ID_TTA;

Also available in: Unified diff