# HG changeset patch # User michael # Date 1260143511 0 # Node ID 50c21a46538f4839d435f6002b8315284cd413e5 # Parent b6116b3431227f47fe17ffd65d350df098b4f097 Fix apparent 10l typos introduced in r8627. These typos moved the exponent pointer too far ahead. Fixes issue1055. diff -r b6116b343122 -r 50c21a46538f wmadec.c --- a/wmadec.c Sun Dec 06 15:39:25 2009 +0000 +++ b/wmadec.c Sun Dec 06 23:51:51 2009 +0000 @@ -630,7 +630,7 @@ /* compute power of high bands */ exponents = s->exponents[ch] + - (s->high_band_start[bsize]<high_band_start[bsize]<>esize); last_high_band = 0; /* avoid warning */ for(j=0;jexponent_high_bands[s->frame_len_bits - @@ -646,11 +646,11 @@ last_high_band = j; tprintf(s->avctx, "%d: power=%f (%d)\n", j, exp_power[j], n); } - exponents += n<>esize; } /* main freqs and high freqs */ - exponents = s->exponents[ch] + (s->coefs_start<exponents[ch] + (s->coefs_start<>esize); for(j=-1;jhigh_band_start[bsize] - @@ -672,7 +672,7 @@ *coefs++ = noise * exponents[i<>esize] * mult1; } - exponents += n<>esize; } else { /* coded values + small noise */ for(i = 0;i < n; i++) { @@ -681,7 +681,7 @@ *coefs++ = ((*coefs1++) + noise) * exponents[i<>esize] * mult; } - exponents += n<>esize; } }