comparison 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
comparison
equal deleted inserted replaced
6107:99e470e62bad 6108:75804d49f33b
1108 return -1; 1108 return -1;
1109 } 1109 }
1110 1110
1111 /* check for crc mismatch */ 1111 /* check for crc mismatch */
1112 if(avctx->error_resilience > 0) { 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 av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n"); 1114 av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n");
1115 return -1; 1115 return -1;
1116 } 1116 }
1117 /* TODO: error concealment */ 1117 /* TODO: error concealment */
1118 } 1118 }