avutil/crc: Fix type of p table so its content fits without overflwoing
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Jun 2015 00:16:49 +0000 (02:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Jun 2015 00:25:48 +0000 (02:25 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/crc.c

index d8b1c99..e432843 100644 (file)
@@ -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     },