[FFmpeg-cvslog] avutil/sha512: make const tables static const

Michael Niedermayer git at videolan.org
Sun Aug 11 17:46:41 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 11 16:49:03 2013 +0200| [475df42eb62c3fdc1f60d1970354a89216654b56] | committer: Michael Niedermayer

avutil/sha512: make const tables static const

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

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

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

diff --git a/libavutil/sha512.c b/libavutil/sha512.c
index 445480c..8413603 100644
--- a/libavutil/sha512.c
+++ b/libavutil/sha512.c
@@ -285,7 +285,7 @@ int main(void)
     int i, j, k;
     AVSHA512 ctx;
     unsigned char digest[64];
-    const int lengths[4] = { 224, 256, 384, 512 };
+    static const int lengths[4] = { 224, 256, 384, 512 };
 
     for (j = 0; j < 4; j++) {
         if (j < 2) printf("Testing SHA-512/%d\n", lengths[j]);



More information about the ffmpeg-cvslog mailing list