Mercurial > libavcodec.hg
diff utils.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 | 3670c9e7ff4d |
children | 4ba171d6d84a |
line wrap: on
line diff
--- a/utils.c Fri Jan 04 20:02:10 2008 +0000 +++ b/utils.c Fri Jan 04 23:09:58 2008 +0000 @@ -1247,17 +1247,6 @@ return LIBAVCODEC_BUILD; } -static void init_crcs(void){ -#if LIBAVUTIL_VERSION_INT < (50<<16) - av_crc04C11DB7= av_mallocz_static(sizeof(AVCRC) * 257); - av_crc8005 = av_mallocz_static(sizeof(AVCRC) * 257); - av_crc07 = av_mallocz_static(sizeof(AVCRC) * 257); -#endif - av_crc_init(av_crc04C11DB7, 0, 32, AV_CRC_32_IEEE, sizeof(AVCRC)*257); - av_crc_init(av_crc8005 , 0, 16, AV_CRC_16 , sizeof(AVCRC)*257); - av_crc_init(av_crc07 , 0, 8, AV_CRC_8_ATM , sizeof(AVCRC)*257); -} - void avcodec_init(void) { static int inited = 0; @@ -1267,7 +1256,6 @@ inited = 1; dsputil_static_init(); - init_crcs(); } void avcodec_flush_buffers(AVCodecContext *avctx)