comparison mlpdec.c @ 9347:b799c2a83624 libavcodec

mlpdec: matrix_out_ch must not be greater than max_matrix_channel, and not max_channel.
author ramiro
date Sun, 05 Apr 2009 20:11:40 +0000
parents 37313693196a
children 586dca8c04e7
comparison
equal deleted inserted replaced
9346:ee59f4f22dce 9347:b799c2a83624
506 int frac_bits, max_chan; 506 int frac_bits, max_chan;
507 s->matrix_out_ch[mat] = get_bits(gbp, 4); 507 s->matrix_out_ch[mat] = get_bits(gbp, 4);
508 frac_bits = get_bits(gbp, 4); 508 frac_bits = get_bits(gbp, 4);
509 s->lsb_bypass [mat] = get_bits1(gbp); 509 s->lsb_bypass [mat] = get_bits1(gbp);
510 510
511 if (s->matrix_out_ch[mat] > s->max_channel) { 511 if (s->matrix_out_ch[mat] > s->max_matrix_channel) {
512 av_log(m->avctx, AV_LOG_ERROR, 512 av_log(m->avctx, AV_LOG_ERROR,
513 "Invalid channel %d specified as output from matrix.\n", 513 "Invalid channel %d specified as output from matrix.\n",
514 s->matrix_out_ch[mat]); 514 s->matrix_out_ch[mat]);
515 return -1; 515 return -1;
516 } 516 }