Loading lib_dec/ivas_qmetadata_dec.c +5 −3 Original line number Diff line number Diff line Loading @@ -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 ) Loading Loading @@ -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 ) { Loading Loading @@ -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)) */ Loading Loading
lib_dec/ivas_qmetadata_dec.c +5 −3 Original line number Diff line number Diff line Loading @@ -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 ) Loading Loading @@ -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 ) { Loading Loading @@ -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)) */ Loading