Commit a829bf26 authored by emerit's avatar emerit
Browse files

bug fix

parent bfcd32d6
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2015,7 +2015,7 @@ static ivas_error ivas_rend_crendConvolver(
                    index_in = add( add( hCrend->delay_line_rw_index, sub( pCrend->hHrtfCrend->max_num_iterations, pCrend->hHrtfCrend->num_iterations[i][j] ) ), add( m, 1 ) );
                    index_in = index_in % ( pCrend->hHrtfCrend->max_num_iterations );
                    move16();
                    offset_in = L_mult0( offset_in, subframe_length );
                    offset_in = L_mult0( index_in, subframe_length );
#else
                    offset_in = add( add( hCrend->delay_line_rw_index, sub( pCrend->hHrtfCrend->max_num_iterations, pCrend->hHrtfCrend->num_iterations[i][j] ) ), add( m, 1 ) );
                    offset_in = offset_in % ( pCrend->hHrtfCrend->max_num_iterations );
@@ -2052,7 +2052,7 @@ static ivas_error ivas_rend_crendConvolver(
            index_in = add( hCrend->diffuse_delay_line_rw_index, add( m, 1 ) );
            index_in = index_in % pCrend->hHrtfCrend->num_iterations_diffuse[0];
            move16();
            offset_diffuse = L_mult0( offset_diffuse, subframe_length );
            offset_diffuse = L_mult0( index_in, subframe_length );
#else
            offset_diffuse = add( hCrend->diffuse_delay_line_rw_index, add( m, 1 ) );
            offset_diffuse = offset_diffuse % pCrend->hHrtfCrend->num_iterations_diffuse[0];