avcodec/libspeexdec: make array const

Found-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-11-22 14:10:13 +01:00
parent 33fc1ccb49
commit 0b9a9e0e2c
1 changed files with 1 additions and 1 deletions

View 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) {