]> git.sesse.net Git - ffmpeg/commitdiff
shorten: fix array subscript is below array bounds warning
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 28 Jan 2013 06:24:51 +0000 (07:24 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 28 Jan 2013 06:24:51 +0000 (07:24 +0100)
Incidentally fixes alpha builds.

libavcodec/shorten.c

index 1dc010f441d57de1f2f97b2ee9cca53fbd56c103..0d022f67cc64767af2d76eda2ebad67b14c6984c 100644 (file)
@@ -469,7 +469,7 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
 
     s->cur_chan = 0;
     while (s->cur_chan < s->channels) {
-        int cmd;
+        unsigned cmd;
         int len;
 
         if (get_bits_left(&s->gb) < 3+FNSIZE) {