aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/crc.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-08-19 12:36:15 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2007-08-19 12:36:15 +0000
commit7b07d3e8feab3e8d6e25303f3e469e250027bb61 (patch)
treeb34d997f8bb7d96406204c74a277101645bbf898 /libavutil/crc.c
parent4f48929248e2d5c47ea0313155368df6ec2e83fa (diff)
downloadffmpeg-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 'libavutil/crc.c')
-rw-r--r--libavutil/crc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavutil/crc.c b/libavutil/crc.c
index 02fb860b86..b519ac43de 100644
--- a/libavutil/crc.c
+++ b/libavutil/crc.c
@@ -94,10 +94,10 @@ uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t le
main(){
uint8_t buf[1999];
int i;
- int p[4][4]={{1, 32, 0xedb88320L, 0x3D5CDD04},
- {0, 32, 0x04c11db7L, 0xC0F5BAE0},
- {0, 16, 0x8005 , 0x1FBB },
- {0, 8, 0x07 , 0xE3 },};
+ int p[4][4]={{1, 32, AV_CRC_32_IEEE_LE, 0x3D5CDD04},
+ {0, 32, AV_CRC_32_IEEE , 0xC0F5BAE0},
+ {0, 16, AV_CRC_16 , 0x1FBB },
+ {0, 8, AV_CRC_8_ATM , 0xE3 },};
AVCRC ctx[1 ? 1024:257];
for(i=0; i<sizeof(buf); i++)