Revision ee4d0322

View differences:

libavcodec/flacdec.c
206 206
        avctx->sample_fmt = SAMPLE_FMT_S16;
207 207

  
208 208
    s->samples  = get_bits_long(&gb, 32) << 4;
209
    s->samples |= get_bits_long(&gb, 4);
209
    s->samples |= get_bits(&gb, 4);
210 210

  
211
    skip_bits(&gb, 64); /* md5 sum */
212
    skip_bits(&gb, 64); /* md5 sum */
211
    skip_bits_long(&gb, 64); /* md5 sum */
212
    skip_bits_long(&gb, 64); /* md5 sum */
213 213

  
214 214
    dump_headers(avctx, s);
215 215
}
......
227 227
    int initial_pos= get_bits_count(&s->gb);
228 228

  
229 229
    if (show_bits_long(&s->gb, 32) == MKBETAG('f','L','a','C')) {
230
        skip_bits(&s->gb, 32);
230
        skip_bits_long(&s->gb, 32);
231 231

  
232 232
        do {
233 233
            metadata_last = get_bits1(&s->gb);

Also available in: Unified diff