libopencore-amr, libvo-amrwbenc: Make the bitrate/mode mapping array static const
authorMartin Storsjö <martin@martin.st>
Tue, 12 Apr 2011 21:15:01 +0000 (00:15 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 13 Apr 2011 08:30:38 +0000 (11:30 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/libopencore-amr.c
libavcodec/libvo-amrwbenc.c

index a81d272..b1eb65c 100644 (file)
@@ -53,7 +53,7 @@ typedef struct AMR_bitrates {
 static int getBitrateMode(int bitrate)
 {
     /* make the correspondance between bitrate and mode */
-    AMR_bitrates rates[] = { { 4750, MR475},
+    static const AMR_bitrates rates[] = {{ 4750, MR475},
                              { 5150, MR515},
                              { 5900, MR59},
                              { 6700, MR67},
index a5e8f39..8ef4f81 100644 (file)
@@ -41,7 +41,7 @@ typedef struct AMRWBContext {
 static int getWBBitrateMode(int bitrate)
 {
     /* make the correspondance between bitrate and mode */
-    AMRWB_bitrates rates[] = { { 6600, 0},
+    static const AMRWB_bitrates rates[] = { { 6600, 0},
                                { 8850, 1},
                                {12650, 2},
                                {14250, 3},