From 3abe5fbdc4169047421e9e8794a8f190d794b929 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Fri, 4 Jan 2008 23:09:58 +0000 Subject: improve CRC API - don't export any global var - provide either generated or hardcoded tables Originally committed as revision 11409 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/flac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/flac.c') diff --git a/libavcodec/flac.c b/libavcodec/flac.c index 6f66de74ea..2c003b099d 100644 --- a/libavcodec/flac.c +++ b/libavcodec/flac.c @@ -558,7 +558,8 @@ static int decode_frame(FLACContext *s, int alloc_data_size) } skip_bits(&s->gb, 8); - crc8= av_crc(av_crc07, 0, s->gb.buffer, get_bits_count(&s->gb)/8); + crc8 = av_crc(av_crc_get_table(AV_CRC_8_ATM), 0, + s->gb.buffer, get_bits_count(&s->gb)/8); if(crc8){ av_log(s->avctx, AV_LOG_ERROR, "header crc mismatch crc=%2X\n", crc8); return -1; -- cgit v1.2.3