mirror of https://git.ffmpeg.org/ffmpeg.git
mlpdec: check ch_assign more completely
Fixes CID970924 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3acaea26e5
commit
8491ac3ad2
|
@ -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…
Reference in New Issue