Commit f0b9192a authored by malenov's avatar malenov
Browse files

removal of dynamic_malloc - cont.

parent ad76ed18
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1825,10 +1825,11 @@ void IVAS_DEC_PrintConfigWithBitstream(
{
    Decoder_Struct *st_ivas;

#define WMC_TOOL_WKIP
    /* Create a copy of decoder struct that will be modified by preview_indices(),
     * leaving the original decoder struct unchanged. The additional memory used here
     * should not be counted towards memory footprint of the decoder. */
    st_ivas = dynamic_malloc( sizeof( Decoder_Struct ) );
    st_ivas = malloc( sizeof( Decoder_Struct ) );
    memcpy( st_ivas, hIvasDec->st_ivas, sizeof( Decoder_Struct ) );

    preview_indices( st_ivas, bit_stream, num_bits );
@@ -1836,7 +1837,8 @@ void IVAS_DEC_PrintConfigWithBitstream(
    /* Print config from modified decoder struct */
    printConfigInfo_dec( st_ivas, hIvasDec->bitstreamformat, hIvasDec->Opt_VOIP, quietModeEnabled );

    dynamic_free( st_ivas );
    free( st_ivas );
#undef WMC_TOOL_SKIP

    return;
}