[FFmpeg-cvslog] qdm2: make a table static const

Mans Rullgard git at videolan.org
Fri Apr 13 00:55:57 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Wed Apr 11 13:03:25 2012 +0100| [9f3e781eabfe85e8bfbbdc97dc581d79c24ea99d] | committer: Mans Rullgard

qdm2: make a table static const

Signed-off-by: Mans Rullgard <mans at mansr.com>

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

 libavcodec/qdm2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index b236977..8d9d281 100644
--- a/libavcodec/qdm2.c
+++ b/libavcodec/qdm2.c
@@ -499,7 +499,7 @@ static void fix_coding_method_array (int sb, int channels, sb_int8_array coding_
     int j,k;
     int ch;
     int run, case_val;
-    int switchtable[23] = {0,5,1,5,5,5,5,5,2,5,5,5,5,5,5,5,3,5,5,5,5,5,4};
+    static const int switchtable[23] = {0,5,1,5,5,5,5,5,2,5,5,5,5,5,5,5,3,5,5,5,5,5,4};
 
     for (ch = 0; ch < channels; ch++) {
         for (j = 0; j < 64; ) {



More information about the ffmpeg-cvslog mailing list