From 0b9a9e0e2ccdb5d0fa7956d805e3f5f02d9d9a53 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 22 Nov 2014 14:10:13 +0100 Subject: [PATCH] avcodec/libspeexdec: make array const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found-by: Reimar Döffinger Signed-off-by: Michael Niedermayer --- libavcodec/libspeexdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c index 479c0108cd..a5f52d1de6 100644 --- a/libavcodec/libspeexdec.c +++ b/libavcodec/libspeexdec.c @@ -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) {