Commit 0b9a9e0e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/libspeexdec: make array const

Found-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 33fc1ccb
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment