Commit 56d99db4 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

simplify for loop to set p_output in ivas_dec

parent 791d3afc
Loading
Loading
Loading
Loading
Loading
+6 −15
Original line number Diff line number Diff line
@@ -122,23 +122,14 @@ ivas_error ivas_dec(
    output_frame = (int16_t) ( output_Fs / FRAMES_PER_SEC );

#ifdef SBA_AND_OBJECTS
    if ( st_ivas->ivas_format == SBA_ISM_FORMAT && output_config == AUDIO_CONFIG_EXTERNAL )
    {
        for ( n = 0; n < nchan_out; n++ )
        {
            p_output[n] = &output[n][0];
        }
    }
    else
    {
#endif
	for ( n = 0; n < MAX_OUTPUT_CHANNELS + MAX_NUM_OBJECTS; n++ )
#else
    for ( n = 0; n < MAX_OUTPUT_CHANNELS; n++ )
#endif
    {
        p_output[n] = &output[n][0];
    }
#ifdef SBA_AND_OBJECTS
    }
#endif


    /*----------------------------------------------------------------*
     * Combine orientations