Commit b81b4cff authored by fotopoulou's avatar fotopoulou
Browse files

fix for when SBA_AND_OBJECTS switch is disabled

parent 46b70cd1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -489,10 +489,12 @@ void ivas_mct_core_enc(
    {
        nAvailBits -= IVAS_FORMAT_SIGNALING_NBITS_EXTENDED;
        nAvailBits -= SBA_ORDER_BITS + SBA_PLANAR_BITS;
#ifdef SBA_AND_OBJECTS
        if ( ivas_format == SBA_ISM_FORMAT && nChannels > 4 ) /*TODOfto: recheck this condition*/
        {
            nAvailBits -= IVAS_COMBINED_FORMAT_SIGNALLING_BITS;
        }
#endif
    }

    for ( cpe_id = 0, i = 0; cpe_id < nCPE; cpe_id++ )