diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-11 00:42:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-11 00:50:29 +0100 |
commit | 8491ac3ad2e9fc92479d6fc42d6ee4cb8d6f61d3 (patch) | |
tree | 350d55b9fada0281b6a2f7cfebbd0d026c8b171c /libavcodec/mlpdec.c | |
parent | 3acaea26e5b63a43bb3920ad5c5c4f0139bd4025 (diff) | |
download | ffmpeg-8491ac3ad2e9fc92479d6fc42d6ee4cb8d6f61d3.tar.gz |
mlpdec: check ch_assign more completely
Fixes CID970924
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |