# HG changeset patch # User jbr # Date 1199401553 0 # Node ID 896e1cd9a7fe981a82eb9d4b4e65b176a70096ef # Parent d6c5990610720aa134558ff963a99f9e203d58cf only check ac3 crc if AVCodecContext.error_resilience > 0 diff -r d6c599061072 -r 896e1cd9a7fe ac3dec.c --- a/ac3dec.c Thu Jan 03 22:42:37 2008 +0000 +++ b/ac3dec.c Thu Jan 03 23:05:53 2008 +0000 @@ -1109,10 +1109,12 @@ } /* check for crc mismatch */ + if(avctx->error_resilience > 0) { if(av_crc(av_crc8005, 0, &buf[2], s->frame_size-2)) { av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n"); return -1; } + } avctx->sample_rate = s->sample_rate; avctx->bit_rate = s->bit_rate;