Commit dabc9818 authored by Jouni Paulus's avatar Jouni Paulus
Browse files

added a better comment to the functionality and removed a TODO from ivas_vbap.c

parent 2bc386f7
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -178,11 +178,13 @@ ivas_error vbap_init_data(
    push_wmops( "vbap_init" );

    /* Basic init checks */
    /* If the requested layout is invalid, hVBAPdata is set to NULL and the signal will
     * be distributed with an equal gain into all output channels.
     * The surrounding code needs to handle the NULL pointer properly. */
    if ( num_speaker_nodes > VBAP_MAX_NUM_SPEAKER_NODES || num_speaker_nodes < 3 )
    {
        hVBAPdata = NULL;
        pop_wmops();
        /* TODO: are these two paths correct behaviour or should and error be returned ? */
        return IVAS_ERR_OK;
    }