diff ac3dec.c @ 6108:75804d49f33b libavcodec

improve CRC API - don't export any global var - provide either generated or hardcoded tables
author aurel
date Fri, 04 Jan 2008 23:09:58 +0000
parents 4d746aada17b
children 1e77145f9c74
line wrap: on
line diff
--- a/ac3dec.c	Fri Jan 04 20:02:10 2008 +0000
+++ b/ac3dec.c	Fri Jan 04 23:09:58 2008 +0000
@@ -1110,7 +1110,7 @@
 
     /* check for crc mismatch */
     if(avctx->error_resilience > 0) {
-        if(av_crc(av_crc8005, 0, &buf[2], s->frame_size-2)) {
+        if(av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, &buf[2], s->frame_size-2)) {
             av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n");
             return -1;
         }