Mercurial > libavcodec.hg
changeset 5548:b763947a7676 libavcodec
Use defines instead of raw hex numbers to specify CRC polynomials
author | reimar |
---|---|
date | Sun, 19 Aug 2007 12:36:15 +0000 |
parents | 81226e690378 |
children | b97f9b97e454 |
files | utils.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Wed Aug 15 21:19:13 2007 +0000 +++ b/utils.c Sun Aug 19 12:36:15 2007 +0000 @@ -1235,9 +1235,9 @@ 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)