From 8491ac3ad2e9fc92479d6fc42d6ee4cb8d6f61d3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 11 Feb 2013 00:42:58 +0100 Subject: [PATCH] mlpdec: check ch_assign more completely Fixes CID970924 Signed-off-by: Michael Niedermayer --- libavcodec/mlpdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index d96ad677e8..f437afa131 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);