[FFmpeg-cvslog] avutil/cast5: Mark key_bits as const

Michael Niedermayer git at videolan.org
Sat May 2 14:58:23 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May  2 14:37:08 2015 +0200| [156f64bdf142674a635c52bcfad7c303df1c168e] | committer: Michael Niedermayer

avutil/cast5: Mark key_bits as const

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=156f64bdf142674a635c52bcfad7c303df1c168e
---

 libavutil/cast5.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/cast5.c b/libavutil/cast5.c
index 6f58382..d07e98b 100644
--- a/libavutil/cast5.c
+++ b/libavutil/cast5.c
@@ -532,7 +532,7 @@ int main(int argc, char** argv)
     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 int key_bits[3] = {128, 80, 40};
+    static const int key_bits[3] = {128, 80, 40};
     uint8_t temp[8];
     AVCAST5 *cs;
     cs = av_cast5_alloc();



More information about the ffmpeg-cvslog mailing list