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 1dc010f..0d022f6 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) {