[FFmpeg-cvslog] mlpdec: check ch_assign more completely

Michael Niedermayer git at videolan.org
Mon Feb 11 01:11:00 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 11 00:42:58 2013 +0100| [8491ac3ad2e9fc92479d6fc42d6ee4cb8d6f61d3] | committer: Michael Niedermayer

mlpdec: check ch_assign more completely

Fixes CID970924

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index d96ad67..f437afa 100644
--- a/libavcodec/mlpdec.c
+++ b/libavcodec/mlpdec.c
@@ -510,7 +510,7 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp,
             ch_assign = av_get_channel_layout_channel_index(s->ch_layout,
                                                             channel);
         }
-        if (ch_assign > s->max_matrix_channel) {
+        if ((unsigned)ch_assign > s->max_matrix_channel) {
             av_log_ask_for_sample(m->avctx,
                    "Assignment of matrix channel %d to invalid output channel %d.\n",
                    ch, ch_assign);



More information about the ffmpeg-cvslog mailing list