Skip to content

Commit

Permalink
Fix coefficient table selection in tns_decode_coef. (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveice10 authored Nov 6, 2023
1 parent 9d965d5 commit 388a0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libfaad/tns.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static uint8_t tns_decode_coef(uint8_t order, uint8_t coef_res_bits, uint8_t coe
{
uint8_t i, m;
real_t tmp2[TNS_MAX_ORDER+1], b[TNS_MAX_ORDER+1];
uint8_t table_index = 2 * (coef_compress == 0) + (coef_res_bits == 3);
uint8_t table_index = 2 * (coef_compress != 0) + (coef_res_bits != 3);
real_t* tns_coef = all_tns_coefs[table_index];
uint8_t exp = 0;

Expand Down

0 comments on commit 388a0f6

Please sign in to comment.