mlpdec: check ch_assign more completely

Fixes CID970924

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/9/merge
Michael Niedermayer 12 years ago
parent 3acaea26e5
commit 8491ac3ad2
  1. 2
      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);

Loading…
Cancel
Save