diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-19 02:16:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-19 02:25:48 +0200 |
commit | d1dce1c51728b35a31248be81915f2ce6fcbb807 (patch) | |
tree | 0607403ef1b2dcd706fbcae3f5660b226e811750 /libavutil | |
parent | 2c881c7d45bc10205912e069d1c25103884a2059 (diff) | |
download | ffmpeg-d1dce1c51728b35a31248be81915f2ce6fcbb807.tar.gz |
avutil/crc: Fix type of p table so its content fits without overflwoing
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/crc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/crc.c b/libavutil/crc.c index d8b1c99d1c..e432843dfd 100644 --- a/libavutil/crc.c +++ b/libavutil/crc.c @@ -383,7 +383,8 @@ int main(void) { uint8_t buf[1999]; int i; - int p[6][3] = { { AV_CRC_32_IEEE_LE, 0xEDB88320, 0x3D5CDD04 }, + unsigned + p[6][3] = { { AV_CRC_32_IEEE_LE, 0xEDB88320, 0x3D5CDD04 }, { AV_CRC_32_IEEE , 0x04C11DB7, 0xC0F5BAE0 }, { AV_CRC_24_IEEE , 0x864CFB , 0xB704CE }, { AV_CRC_16_ANSI_LE, 0xA001 , 0xBFD8 }, |