Loading lib_enc/ivas_dirac_enc.c +0 −15 Original line number Diff line number Diff line Loading @@ -140,21 +140,6 @@ ivas_error ivas_dirac_enc_open_fx( } set32_fx( hDirAC->direction_vector_m_fx[i][j], 0, DIRAC_MAX_NBANDS ); } #ifdef IVAS_FLOAT_FIXED IF( ( hDirAC->direction_vector_m_fx[i] = (Word32 **) malloc( MAX_PARAM_SPATIAL_SUBFRAMES * sizeof( Word32 * ) ) ) == NULL ) { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for DirAC\n" ) ); } FOR( j = 0; j < MAX_PARAM_SPATIAL_SUBFRAMES; j++ ) { if ( ( hDirAC->direction_vector_m_fx[i][j] = (Word32 *) malloc( DIRAC_MAX_NBANDS * sizeof( Word32 ) ) ) == NULL ) { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for DirAC\n" ) ); } set32_fx( hDirAC->direction_vector_m_fx[i][j], 0, DIRAC_MAX_NBANDS ); } #endif } Word16 tmp_e = 0; Loading Loading
lib_enc/ivas_dirac_enc.c +0 −15 Original line number Diff line number Diff line Loading @@ -140,21 +140,6 @@ ivas_error ivas_dirac_enc_open_fx( } set32_fx( hDirAC->direction_vector_m_fx[i][j], 0, DIRAC_MAX_NBANDS ); } #ifdef IVAS_FLOAT_FIXED IF( ( hDirAC->direction_vector_m_fx[i] = (Word32 **) malloc( MAX_PARAM_SPATIAL_SUBFRAMES * sizeof( Word32 * ) ) ) == NULL ) { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for DirAC\n" ) ); } FOR( j = 0; j < MAX_PARAM_SPATIAL_SUBFRAMES; j++ ) { if ( ( hDirAC->direction_vector_m_fx[i][j] = (Word32 *) malloc( DIRAC_MAX_NBANDS * sizeof( Word32 ) ) ) == NULL ) { return ( IVAS_ERROR( IVAS_ERR_FAILED_ALLOC, "Can not allocate memory for DirAC\n" ) ); } set32_fx( hDirAC->direction_vector_m_fx[i][j], 0, DIRAC_MAX_NBANDS ); } #endif } Word16 tmp_e = 0; Loading