Loading lib_dec/ivas_dirac_dec.c +15 −25 Original line number Diff line number Diff line Loading @@ -1006,7 +1006,6 @@ ivas_error ivas_dirac_dec_config( free( hDirAC->azimuth[i] ); hDirAC->azimuth[i] = NULL; } if ( hDirAC->elevation[i] != NULL ) { free( hDirAC->elevation[i] ); Loading @@ -1017,6 +1016,21 @@ ivas_error ivas_dirac_dec_config( free( hDirAC->diffuseness_vector[i] ); hDirAC->diffuseness_vector[i] = NULL; } if ( hDirAC->energy_ratio1[i] != NULL ) { free( hDirAC->energy_ratio1[i] ); hDirAC->energy_ratio1[i] = NULL; } if ( hDirAC->spreadCoherence[i] != NULL ) { free( hDirAC->spreadCoherence[i] ); hDirAC->spreadCoherence[i] = NULL; } if ( hDirAC->surroundingCoherence[i] != NULL ) { free( hDirAC->surroundingCoherence[i] ); hDirAC->surroundingCoherence[i] = NULL; } } if ( hDirAC->azimuth != NULL ) { Loading @@ -1035,40 +1049,16 @@ ivas_error ivas_dirac_dec_config( } if ( hDirAC->energy_ratio1 != NULL ) { for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ ) { if ( hDirAC->energy_ratio1[i] != NULL ) { free( hDirAC->energy_ratio1[i] ); hDirAC->energy_ratio1[i] = NULL; } } free( hDirAC->energy_ratio1 ); hDirAC->energy_ratio1 = NULL; } if ( hDirAC->spreadCoherence != NULL ) { for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ ) { if ( hDirAC->spreadCoherence[i] != NULL ) { free( hDirAC->spreadCoherence[i] ); hDirAC->spreadCoherence[i] = NULL; } } free( hDirAC->spreadCoherence ); hDirAC->spreadCoherence = NULL; } if ( hDirAC->surroundingCoherence != NULL ) { for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ ) { if ( hDirAC->surroundingCoherence[i] != NULL ) { free( hDirAC->surroundingCoherence[i] ); hDirAC->surroundingCoherence[i] = NULL; } } free( hDirAC->surroundingCoherence ); hDirAC->surroundingCoherence = NULL; } Loading Loading
lib_dec/ivas_dirac_dec.c +15 −25 Original line number Diff line number Diff line Loading @@ -1006,7 +1006,6 @@ ivas_error ivas_dirac_dec_config( free( hDirAC->azimuth[i] ); hDirAC->azimuth[i] = NULL; } if ( hDirAC->elevation[i] != NULL ) { free( hDirAC->elevation[i] ); Loading @@ -1017,6 +1016,21 @@ ivas_error ivas_dirac_dec_config( free( hDirAC->diffuseness_vector[i] ); hDirAC->diffuseness_vector[i] = NULL; } if ( hDirAC->energy_ratio1[i] != NULL ) { free( hDirAC->energy_ratio1[i] ); hDirAC->energy_ratio1[i] = NULL; } if ( hDirAC->spreadCoherence[i] != NULL ) { free( hDirAC->spreadCoherence[i] ); hDirAC->spreadCoherence[i] = NULL; } if ( hDirAC->surroundingCoherence[i] != NULL ) { free( hDirAC->surroundingCoherence[i] ); hDirAC->surroundingCoherence[i] = NULL; } } if ( hDirAC->azimuth != NULL ) { Loading @@ -1035,40 +1049,16 @@ ivas_error ivas_dirac_dec_config( } if ( hDirAC->energy_ratio1 != NULL ) { for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ ) { if ( hDirAC->energy_ratio1[i] != NULL ) { free( hDirAC->energy_ratio1[i] ); hDirAC->energy_ratio1[i] = NULL; } } free( hDirAC->energy_ratio1 ); hDirAC->energy_ratio1 = NULL; } if ( hDirAC->spreadCoherence != NULL ) { for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ ) { if ( hDirAC->spreadCoherence[i] != NULL ) { free( hDirAC->spreadCoherence[i] ); hDirAC->spreadCoherence[i] = NULL; } } free( hDirAC->spreadCoherence ); hDirAC->spreadCoherence = NULL; } if ( hDirAC->surroundingCoherence != NULL ) { for ( i = 0; i < hDirAC->dirac_md_buffer_length; i++ ) { if ( hDirAC->surroundingCoherence[i] != NULL ) { free( hDirAC->surroundingCoherence[i] ); hDirAC->surroundingCoherence[i] = NULL; } } free( hDirAC->surroundingCoherence ); hDirAC->surroundingCoherence = NULL; } Loading