Revision e356fc57 libavformat/siff.c

View differences:

libavformat/siff.c
103 103
    }
104 104
    width = avio_rl16(pb);
105 105
    height = avio_rl16(pb);
106
    url_fskip(pb, 4);
106
    avio_seek(pb, 4, SEEK_CUR);
107 107
    c->frames = avio_rl16(pb);
108 108
    if(!c->frames){
109 109
        av_log(s, AV_LOG_ERROR, "File contains no frames ???\n");
......
113 113
    c->rate = avio_rl16(pb);
114 114
    c->block_align = c->rate * (c->bits >> 3);
115 115

  
116
    url_fskip(pb, 16); //zeroes
116
    avio_seek(pb, 16, SEEK_CUR); //zeroes
117 117

  
118 118
    st = av_new_stream(s, 0);
119 119
    if (!st)
......
145 145
        av_log(s, AV_LOG_ERROR, "Header chunk size is incorrect\n");
146 146
        return -1;
147 147
    }
148
    url_fskip(pb, 4); //unknown value
148
    avio_seek(pb, 4, SEEK_CUR); //unknown value
149 149
    c->rate = avio_rl16(pb);
150 150
    c->bits = avio_rl16(pb);
151 151
    c->block_align = c->rate * (c->bits >> 3);
......
160 160

  
161 161
    if (avio_rl32(pb) != TAG_SIFF)
162 162
        return -1;
163
    url_fskip(pb, 4); //ignore size
163
    avio_seek(pb, 4, SEEK_CUR); //ignore size
164 164
    tag = avio_rl32(pb);
165 165

  
166 166
    if (tag != TAG_VBV1 && tag != TAG_SOUN){
......
176 176
        av_log(s, AV_LOG_ERROR, "'BODY' chunk is missing\n");
177 177
        return -1;
178 178
    }
179
    url_fskip(pb, 4); //ignore size
179
    avio_seek(pb, 4, SEEK_CUR); //ignore size
180 180

  
181 181
    return 0;
182 182
}

Also available in: Unified diff