Skip to content

Wrong return value in IVAS_DEC_GetNumOrientationSubframes()

Function IVAS_DEC_GetNumOrientationSubframes() is supposed to return a number of subframes for rendering but it returns a number of samples.

It should likely be:

#ifdef FIX
    *num_subframes = IVAS_RENDER_FRAMESIZE_20MS / (int16_t) hIvasDec->st_ivas->hDecoderConfig->render_framesize;
#else
    *num_subframes = (int16_t) hIvasDec->st_ivas->hDecoderConfig->render_framesize;
#endif

The function was introduced under NONBE_UNIFIED_DECODING_PATHS.