Commit b24d2290 authored by vaclav's avatar vaclav
Browse files

removed outdated todos in ivas_qmetadata_dec_sid_decode()

parent 01917fc5
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1265,7 +1265,7 @@ int16_t ivas_qmetadata_dec_sid_decode(
    start_index = *index;

    /* read MASA SID descriptor */
    if ( ivas_format == MASA_FORMAT && nchan_transport == 2 ) /* corresponding to SID_MASA case; Todo: needs to be checked for SBA */
    if ( ivas_format == MASA_FORMAT && nchan_transport == 2 )
    {
        b = bitstream[( *index )--];
        if ( b )
@@ -1455,12 +1455,14 @@ int16_t ivas_qmetadata_dec_sid_decode(
            }
        }
    }

#if !( #defined FIX_137_SID_MD_BITS && #defined FIX_QMETA_SID_5k2 )
    /* TODO: temporary hack to keep BE */
    if ( ivas_format != SBA_FORMAT )
    {
        metadata_sid_bits = ( IVAS_SID_5k2 - SID_2k40 ) / FRAMES_PER_SEC - SID_FORMAT_NBITS;
    }

#endif
    /*Read filling bits*/
    while ( start_index - *index < metadata_sid_bits )
    {
@@ -2372,7 +2374,7 @@ static uint16_t ivas_qmetadata_DecodeQuasiUniform(
    uint16_t tresh, value;

#ifdef DEBUGGING
    assert( ( alphabet_size >= 1 ) ); /* ToDo: fcs: to check if this additional conditon is really needed: && (alphabet_size <= (1U << 31) - 1));*/
    assert( ( alphabet_size >= 1 ) );
#endif

    bits = 30 - norm_l( alphabet_size ); /* bits = floor(log2(alphabet_size)) */