]> git.sesse.net Git - ffmpeg/commitdiff
j2k: fix "static is not at beginning of declaration" warning
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Sep 2012 00:13:52 +0000 (02:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Sep 2012 00:13:52 +0000 (02:13 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/j2k.c
libavcodec/j2k_dwt.c

index 5a42814c0f083750f4054da37e904277d34b8d81..606a3d8b8bdd3e9455f89b45f04bb7ca934a3c0a 100644 (file)
@@ -252,7 +252,7 @@ int ff_j2k_init_component(J2kComponent *comp, J2kCodingStyle *codsty, J2kQuantSt
             int cblkperprecw, cblkperprech;
 
             if (qntsty->quantsty != J2K_QSTY_NONE){
-                const static uint8_t lut_gain[2][4] = {{0, 0, 0, 0}, {0, 1, 1, 2}};
+                static const uint8_t lut_gain[2][4] = {{0, 0, 0, 0}, {0, 1, 1, 2}};
                 int numbps;
 
                 numbps = cbps + lut_gain[codsty->transform][bandno + reslevelno>0];
index 48aa33735eb40bb6cb095eadc1c24668b3ea1bdf..6f1457fc226abac5525985cbff24017894157204 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "j2k_dwt.h"
 
-const static float scale97[] = {1.625786, 1.230174};
+static const float scale97[] = {1.625786, 1.230174};
 
 static inline void extend53(int *p, int i0, int i1)
 {