Revision 3abe5fbd libavcodec/ac3dec.c

View differences:

libavcodec/ac3dec.c
1110 1110

  
1111 1111
    /* check for crc mismatch */
1112 1112
    if(avctx->error_resilience > 0) {
1113
        if(av_crc(av_crc8005, 0, &buf[2], s->frame_size-2)) {
1113
        if(av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, &buf[2], s->frame_size-2)) {
1114 1114
            av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n");
1115 1115
            return -1;
1116 1116
        }

Also available in: Unified diff