OSDN Git Service

compatible_frame array can be static const, too.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Sep 2009 08:27:23 +0000 (08:27 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 6 Sep 2009 08:27:23 +0000 (08:27 +0000)
Originally committed as revision 19779 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vp3.c

index 5e541d0..2cbafa7 100644 (file)
@@ -1225,7 +1225,7 @@ static void reverse_dc_prediction(Vp3DecodeContext *s,
      * from other INTRA blocks. There are 2 golden frame coding types;
      * blocks encoding in these modes can only predict from other blocks
      * that were encoded with these 1 of these 2 modes. */
-    unsigned char compatible_frame[8] = {
+    static const unsigned char compatible_frame[8] = {
         1,    /* MODE_INTER_NO_MV */
         0,    /* MODE_INTRA */
         1,    /* MODE_INTER_PLUS_MV */