mirror of
https://github.com/ittiam-systems/libxaac.git
synced 2026-07-11 14:49:12 +07:00
Fix for crash due to un-initailized variables in drc module
am: 988f5bd17c
Change-Id: I0853cd45831ad45638bd92cc4efe493a09782e5c
This commit is contained in:
commit
fb716d4167
1 changed files with 6 additions and 6 deletions
|
|
@ -148,25 +148,25 @@ IA_ERRORCODE impd_init_drc_decode_post_config(
|
||||||
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
||||||
.buf_interpolation_count = drc_instruction_str->gain_element_count;
|
.buf_interpolation_count = drc_instruction_str->gain_element_count;
|
||||||
for (i = 0;
|
for (i = 0;
|
||||||
i < p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[i]
|
i < p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
||||||
.buf_interpolation_count;
|
.buf_interpolation_count;
|
||||||
i++) {
|
i++) {
|
||||||
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[i]
|
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
||||||
.buf_interpolation[i]
|
.buf_interpolation[i]
|
||||||
.str_node.time = 0;
|
.str_node.time = 0;
|
||||||
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[i]
|
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
||||||
.buf_interpolation[i]
|
.buf_interpolation[i]
|
||||||
.prev_node.time = -1;
|
.prev_node.time = -1;
|
||||||
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[i]
|
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
||||||
.buf_interpolation[i]
|
.buf_interpolation[i]
|
||||||
.str_node.loc_db_gain = 0.0f;
|
.str_node.loc_db_gain = 0.0f;
|
||||||
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[i]
|
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
||||||
.buf_interpolation[i]
|
.buf_interpolation[i]
|
||||||
.str_node.slope = 0.0f;
|
.str_node.slope = 0.0f;
|
||||||
|
|
||||||
for (j = 0; j < 2 * AUDIO_CODEC_FRAME_SIZE_MAX + MAX_SIGNAL_DELAY;
|
for (j = 0; j < 2 * AUDIO_CODEC_FRAME_SIZE_MAX + MAX_SIGNAL_DELAY;
|
||||||
j++) {
|
j++) {
|
||||||
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[i]
|
p_drc_gain_dec_structs->drc_gain_buffers.pstr_gain_buf[k]
|
||||||
.buf_interpolation[i]
|
.buf_interpolation[i]
|
||||||
.lpcm_gains[j] = 1.f;
|
.lpcm_gains[j] = 1.f;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue