Commit 67aba192 authored by sagnowski's avatar sagnowski
Browse files

Fix incorrect buffer size

parent 6698f7fe
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -541,7 +541,11 @@ ivas_error IVAS_DEC_EnableVoIP(

#define WMC_TOOL_SKIP
    /* Bitstream conversion is not counted towards complexity and memory usage */
#ifdef FIX_245_RANGE_CODER_VOIP_MSAN
    hIvasDec->hVoIP->bs_conversion_buf = malloc( sizeof( uint16_t ) * ( MAX_BITS_PER_FRAME + 4 * 8 ) );
#else
    hIvasDec->hVoIP->bs_conversion_buf = malloc( sizeof( uint16_t ) * MAX_BITS_PER_FRAME + 4 * 8 );
#endif
#undef WMC_TOOL_SKIP

    if ( hIvasDec->hVoIP->bs_conversion_buf == NULL )