comparison mlpdec.c @ 9264:230dac9ec1d4 libavcodec

mlpdec: output_shift is signed
author ramiro
date Fri, 27 Mar 2009 23:45:52 +0000
parents 62774b28cde0
children 9d04c011f3dd
comparison
equal deleted inserted replaced
9263:62774b28cde0 9264:230dac9ec1d4
623 } 623 }
624 624
625 if (s->param_presence_flags & PARAM_OUTSHIFT) 625 if (s->param_presence_flags & PARAM_OUTSHIFT)
626 if (get_bits1(gbp)) 626 if (get_bits1(gbp))
627 for (ch = 0; ch <= s->max_matrix_channel; ch++) { 627 for (ch = 0; ch <= s->max_matrix_channel; ch++) {
628 s->output_shift[ch] = get_bits(gbp, 4); 628 s->output_shift[ch] = get_sbits(gbp, 4);
629 dprintf(m->avctx, "output shift[%d] = %d\n", 629 dprintf(m->avctx, "output shift[%d] = %d\n",
630 ch, s->output_shift[ch]); 630 ch, s->output_shift[ch]);
631 /* TODO: validate */ 631 /* TODO: validate */
632 } 632 }
633 633