Commit c75de802 authored by bayers's avatar bayers
Browse files

fix calculation of render frame size in samples

parent c138b25b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -634,7 +634,7 @@ ivas_error IVAS_DEC_GetRenderFramesizeSamples(
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }

    *render_framesize = (int16_t) ( hIvasDec->st_ivas->hDecoderConfig->output_Fs * hIvasDec->st_ivas->hDecoderConfig->render_framesize / ( 1000 * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) );
    *render_framesize = (int16_t) ( hIvasDec->st_ivas->hDecoderConfig->output_Fs * hIvasDec->st_ivas->hDecoderConfig->render_framesize / ( FRAMES_PER_SEC * IVAS_MAX_PARAM_SPATIAL_SUBFRAMES ) );

    return IVAS_ERR_OK;
}