[FFmpeg-cvslog] avcodec/libspeexdec: make array const

Michael Niedermayer git at videolan.org
Sat Nov 22 14:26:53 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 22 14:10:13 2014 +0100| [0b9a9e0e2ccdb5d0fa7956d805e3f5f02d9d9a53] | committer: Michael Niedermayer

avcodec/libspeexdec: make array const

Found-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b9a9e0e2ccdb5d0fa7956d805e3f5f02d9d9a53
---

 libavcodec/libspeexdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libspeexdec.c b/libavcodec/libspeexdec.c
index 479c010..a5f52d1 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) {



More information about the ffmpeg-cvslog mailing list