Revision 3abe5fbd libavcodec/flac.c

View differences:

libavcodec/flac.c
558 558
    }
559 559

  
560 560
    skip_bits(&s->gb, 8);
561
    crc8= av_crc(av_crc07, 0, s->gb.buffer, get_bits_count(&s->gb)/8);
561
    crc8 = av_crc(av_crc_get_table(AV_CRC_8_ATM), 0,
562
                  s->gb.buffer, get_bits_count(&s->gb)/8);
562 563
    if(crc8){
563 564
        av_log(s->avctx, AV_LOG_ERROR, "header crc mismatch crc=%2X\n", crc8);
564 565
        return -1;

Also available in: Unified diff