[FFmpeg-cvslog] shorten: fix array subscript is below array bounds warning

Luca Barbato git at videolan.org
Mon Jan 28 14:52:56 CET 2013


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Mon Jan 28 07:24:51 2013 +0100| [4839fbe2d1b922b387e1a58261eeba2efe164a4e] | committer: Luca Barbato

shorten: fix array subscript is below array bounds warning

Incidentally fixes alpha builds.

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

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

diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
index 1dc010f..0d022f6 100644
--- a/libavcodec/shorten.c
+++ b/libavcodec/shorten.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list