diff --git a/lib_dec/lib_dec.c b/lib_dec/lib_dec.c index 82de3a83eb881fae654d0bc3a3b3ed28a18a4809..81545fc6bd4bee4e35a4fe4c308ebad75e4bd388 100644 --- a/lib_dec/lib_dec.c +++ b/lib_dec/lib_dec.c @@ -1656,9 +1656,13 @@ static ivas_error IVAS_DEC_GetRenderedSamples( st_ivas = hIvasDec->st_ivas; #ifdef FIX_HRTF_LOAD - // temp code to make HRTF changes working in the old API structure - uint16_t nSamplesRendered_loop = 0; - uint8_t nOutChannels = (uint8_t) st_ivas->hDecoderConfig->nchan_out; + /* temp code to make HRTF changes working in the old API structure */ + uint16_t nSamplesRendered_loop; + uint8_t nOutChannels; + + nSamplesRendered_loop = 0; + nOutChannels = (uint8_t) st_ivas->hDecoderConfig->nchan_out; + hIvasDec->hasBeenFedFrame = false; /* check for possible flushed samples from a rate switch */