Mercurial > libavcodec.hg
comparison utils.c @ 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 | b0a566346fb1 |
children | 1a92e129a679 |
comparison
equal
deleted
inserted
replaced
5547:81226e690378 | 5548:b763947a7676 |
---|---|
1233 #if LIBAVUTIL_VERSION_INT < (50<<16) | 1233 #if LIBAVUTIL_VERSION_INT < (50<<16) |
1234 av_crc04C11DB7= av_mallocz_static(sizeof(AVCRC) * 257); | 1234 av_crc04C11DB7= av_mallocz_static(sizeof(AVCRC) * 257); |
1235 av_crc8005 = av_mallocz_static(sizeof(AVCRC) * 257); | 1235 av_crc8005 = av_mallocz_static(sizeof(AVCRC) * 257); |
1236 av_crc07 = av_mallocz_static(sizeof(AVCRC) * 257); | 1236 av_crc07 = av_mallocz_static(sizeof(AVCRC) * 257); |
1237 #endif | 1237 #endif |
1238 av_crc_init(av_crc04C11DB7, 0, 32, 0x04c11db7, sizeof(AVCRC)*257); | 1238 av_crc_init(av_crc04C11DB7, 0, 32, AV_CRC_32_IEEE, sizeof(AVCRC)*257); |
1239 av_crc_init(av_crc8005 , 0, 16, 0x8005 , sizeof(AVCRC)*257); | 1239 av_crc_init(av_crc8005 , 0, 16, AV_CRC_16 , sizeof(AVCRC)*257); |
1240 av_crc_init(av_crc07 , 0, 8, 0x07 , sizeof(AVCRC)*257); | 1240 av_crc_init(av_crc07 , 0, 8, AV_CRC_8_ATM , sizeof(AVCRC)*257); |
1241 } | 1241 } |
1242 | 1242 |
1243 void avcodec_init(void) | 1243 void avcodec_init(void) |
1244 { | 1244 { |
1245 static int inited = 0; | 1245 static int inited = 0; |