Commit af91532c authored by ramiro's avatar ramiro

mlpdec: matrix_out_ch must not be greater than max_matrix_channel, and not max_channel.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18335 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 62e02c72
...@@ -508,7 +508,7 @@ static int read_matrix_params(MLPDecodeContext *m, SubStream *s, GetBitContext * ...@@ -508,7 +508,7 @@ static int read_matrix_params(MLPDecodeContext *m, SubStream *s, GetBitContext *
frac_bits = get_bits(gbp, 4); frac_bits = get_bits(gbp, 4);
s->lsb_bypass [mat] = get_bits1(gbp); s->lsb_bypass [mat] = get_bits1(gbp);
if (s->matrix_out_ch[mat] > s->max_channel) { if (s->matrix_out_ch[mat] > s->max_matrix_channel) {
av_log(m->avctx, AV_LOG_ERROR, av_log(m->avctx, AV_LOG_ERROR,
"Invalid channel %d specified as output from matrix.\n", "Invalid channel %d specified as output from matrix.\n",
s->matrix_out_ch[mat]); s->matrix_out_ch[mat]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment