avcodec/libspeexdec: make array const
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Nov 2014 13:10:13 +0000 (14:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Nov 2014 13:10:47 +0000 (14:10 +0100)
Found-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libspeexdec.c

index 479c010..a5f52d1 100644 (file)
@@ -63,7 +63,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
             return AVERROR_PATCHWELCOME;
         }
 
-        s->pktsize = ((int[]){5,10,15,20,20,28,28,38,38,46,62})[quality];
+        s->pktsize = ((const int[]){5,10,15,20,20,28,28,38,38,46,62})[quality];
 
         spx_mode           = 0;
     } else if (header) {