Commit cb854f6f authored by Vidhya V P's avatar Vidhya V P
Browse files

Reverting the change made in ivas_spar_dec()

[x]Added back the reading of padding bits
parent e5b4a0e8
Loading
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -354,15 +354,11 @@ ivas_error ivas_spar_dec(

    if ( !st0->bfi && hDecoderConfig->ivas_total_brate == IVAS_SID_5k2 )
    {
#ifndef FIX_137_SID_MD_BITS
        int16_t zero_pad_bits;
#endif
        *nb_bits_read += SID_FORMAT_NBITS;
#ifndef FIX_137_SID_MD_BITS
        zero_pad_bits = (int16_t) ( IVAS_SID_5k2 - SID_2k40 ) / FRAMES_PER_SEC - *nb_bits_read;
        assert( zero_pad_bits <= 1 );
        *nb_bits_read += zero_pad_bits;
#endif
    }

    pop_wmops();