state = malloc(sizeof(struct internal_state));
if (state == NULL)
return AEC_MEM_ERROR;
+ memset(state, 0, sizeof(struct internal_state));
create_se_table(state->se_table);
if (state->rsi_buffer == NULL)
return AEC_MEM_ERROR;
+ state->ref = 0;
strm->total_in = 0;
strm->total_out = 0;
memset(state, 0, sizeof(struct internal_state));
strm->state = state;
+ state->uncomp_len = strm->block_size * strm->bits_per_sample;
if (strm->bits_per_sample > 16) {
/* 24/32 input bit settings */
state->block = state->data_pp;
+ state->ref = 0;
strm->total_in = 0;
strm->total_out = 0;
state->flushed = 0;