# HG changeset patch # User michael # Date 1208359804 0 # Node ID d525255f56885b0a8ccc1c2b98eea222516c7533 # Parent 54f88d1cee729133133c6fd3bd208b8376b77cba Move the *-1 to a more sane place as well. diff -r 54f88d1cee72 -r d525255f5688 nellymoserdec.c --- a/nellymoserdec.c Wed Apr 16 15:28:11 2008 +0000 +++ b/nellymoserdec.c Wed Apr 16 15:30:04 2008 +0000 @@ -279,7 +279,7 @@ for (i=0 ; i 0) val += nelly_delta_table[get_bits(&s->gb, 5)]; - pval = pow(2, val/2048) * s->scale_bias; + pval = -pow(2, val/2048) * s->scale_bias; for (j = 0; j < nelly_band_sizes_table[i]; j++) { *bptr++ = val; *pptr++ = pval; @@ -298,11 +298,11 @@ for (j = 0; j < NELLY_FILL_LEN; j++) { if (bits[j] <= 0) { aptr[j] = M_SQRT1_2*pows[j]; - if (!(av_random(&s->random_state) & 1)) + if (av_random(&s->random_state) & 1) aptr[j] *= -1.0; } else { v = get_bits(&s->gb, bits[j]); - aptr[j] = -dequantization_table[(1<