Skip to content

Commit

Permalink
Merge pull request #88 from ittiam-systems/encoder_bug_fixes
Browse files Browse the repository at this point in the history
Fix for the Use-of-uninitialized-value in iusace_fd_encode_fac
  • Loading branch information
SanaAnjaneyulu authored May 10, 2024
2 parents f17df34 + 558d174 commit e6c99d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions encoder/iusace_enc_fac.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,10 @@ WORD32 iusace_fd_encode_fac(WORD32 *prm, WORD16 *ptr_bit_buf, WORD32 fac_length)
n = qn - nk * 2;
}

iusace_write_bits2buf(I, 4 * n, ptr_bit_buf);
ptr_bit_buf += 4 * n;
if (n != 0) {
iusace_write_bits2buf(I, 4 * n, ptr_bit_buf);
ptr_bit_buf += 4 * n;
}
for (j = 0; j < 8; j++) {
iusace_write_bits2buf(kv[j], nk, ptr_bit_buf);
ptr_bit_buf += nk;
Expand Down

0 comments on commit e6c99d9

Please sign in to comment.