Ignore:
Timestamp:
03/27/07 11:23:35 (18 years ago)
Author:
r2d
Message:

corrected pns encoding/decoding bug (doesn't change bitstream for quality >= 5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/branches/r2d/libmpcdec/mpc_decoder.c

    r242 r243  
    523523                d->Res_L[Max_used_Band-1] = mpc_bits_huff_dec(r, mpc_table_HuffRes[0]);
    524524                d->Res_R[Max_used_Band-1] = mpc_bits_huff_dec(r, mpc_table_HuffRes[0]);
     525                if (d->Res_L[Max_used_Band-1] > 15) d->Res_L[Max_used_Band-1] -= 17;
     526                if (d->Res_R[Max_used_Band-1] > 15) d->Res_R[Max_used_Band-1] -= 17;
    525527                for ( n = Max_used_Band - 2; n >= 0; n--) {
    526528                        d->Res_L[n] = mpc_bits_huff_dec(r, mpc_table_HuffRes[d->Res_L[n + 1] > 2]) + d->Res_L[n + 1];
Note: See TracChangeset for help on using the changeset viewer.