avutil/cast5: Make iv array static
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 2 May 2015 12:37:48 +0000 (14:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 2 May 2015 12:37:48 +0000 (14:37 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/cast5.c

index d07e98b786818f7c36671e08a27da2a7a1d35220..98aa19d6306737adecacac9994f0990d8dc064da 100644 (file)
@@ -529,7 +529,7 @@ int main(int argc, char** argv)
         {0xee, 0xa9, 0xd0, 0xa2, 0x49, 0xfd, 0x3b, 0xa6, 0xb3, 0x43, 0x6f, 0xb8, 0x9d, 0x6d, 0xca, 0x92},
         {0xb2, 0xc9, 0x5e, 0xb0, 0x0c, 0x31, 0xad, 0x71, 0x80, 0xac, 0x05, 0xb8, 0xe8, 0x3d, 0x69, 0x6e}
     };
-    const uint8_t iv[8] = {0xee, 0xa9, 0xd0, 0xa2, 0x49, 0xfd, 0x3b, 0xa6};
+    static const uint8_t iv[8] = {0xee, 0xa9, 0xd0, 0xa2, 0x49, 0xfd, 0x3b, 0xa6};
     static uint8_t rpt2[2][16];
     int i, j, err = 0;
     static const int key_bits[3] = {128, 80, 40};