diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-08-19 12:36:15 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-08-19 12:36:15 +0000 |
commit | 7b07d3e8feab3e8d6e25303f3e469e250027bb61 (patch) | |
tree | b34d997f8bb7d96406204c74a277101645bbf898 /libavcodec/utils.c | |
parent | 4f48929248e2d5c47ea0313155368df6ec2e83fa (diff) | |
download | ffmpeg-7b07d3e8feab3e8d6e25303f3e469e250027bb61.tar.gz |
Use defines instead of raw hex numbers to specify CRC polynomials
Originally committed as revision 10143 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index e494baf965..3b194899b3 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1235,9 +1235,9 @@ static void init_crcs(void){ av_crc8005 = av_mallocz_static(sizeof(AVCRC) * 257); av_crc07 = av_mallocz_static(sizeof(AVCRC) * 257); #endif - av_crc_init(av_crc04C11DB7, 0, 32, 0x04c11db7, sizeof(AVCRC)*257); - av_crc_init(av_crc8005 , 0, 16, 0x8005 , sizeof(AVCRC)*257); - av_crc_init(av_crc07 , 0, 8, 0x07 , sizeof(AVCRC)*257); + 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) |