Revision f59d8ff8 libavformat/mp3dec.c

View differences:

libavformat/mp3dec.c
90 90
        return -1;
91 91

  
92 92
    /* Check for Xing / Info tag */
93
    url_fseek(s->pb, xing_offtbl[c.lsf == 1][c.nb_channels == 1], SEEK_CUR);
93
    avio_seek(s->pb, xing_offtbl[c.lsf == 1][c.nb_channels == 1], SEEK_CUR);
94 94
    v = avio_rb32(s->pb);
95 95
    if(v == MKBETAG('X', 'i', 'n', 'g') || v == MKBETAG('I', 'n', 'f', 'o')) {
96 96
        v = avio_rb32(s->pb);
......
101 101
    }
102 102

  
103 103
    /* Check for VBRI tag (always 32 bytes after end of mpegaudio header) */
104
    url_fseek(s->pb, base + 4 + 32, SEEK_SET);
104
    avio_seek(s->pb, base + 4 + 32, SEEK_SET);
105 105
    v = avio_rb32(s->pb);
106 106
    if(v == MKBETAG('V', 'B', 'R', 'I')) {
107 107
        /* Check tag version */
108 108
        if(avio_rb16(s->pb) == 1) {
109 109
            /* skip delay and quality */
110
            url_fseek(s->pb, 4, SEEK_CUR);
110
            avio_seek(s->pb, 4, SEEK_CUR);
111 111
            frames = avio_rb32(s->pb);
112 112
            size = avio_rb32(s->pb);
113 113
        }
......
117 117
        return -1;
118 118

  
119 119
    /* Skip the vbr tag frame */
120
    url_fseek(s->pb, base + vbrtag_size, SEEK_SET);
120
    avio_seek(s->pb, base + vbrtag_size, SEEK_SET);
121 121

  
122 122
    spf = c.lsf ? 576 : 1152; /* Samples per frame, layer 3 */
123 123
    if(frames)
......
153 153
        ff_id3v1_read(s);
154 154

  
155 155
    if (mp3_parse_vbr_tags(s, st, off) < 0)
156
        url_fseek(s->pb, off, SEEK_SET);
156
        avio_seek(s->pb, off, SEEK_SET);
157 157

  
158 158
    /* the parameters will be extracted from the compressed bitstream */
159 159
    return 0;

Also available in: Unified diff