Commit 3912e625 authored by vaclav's avatar vaclav
Browse files

fix

parent 09109881
Loading
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -1119,6 +1119,33 @@ ivas_error IVAS_DEC_FeedFrame_Serial(
        move16();
    }

        /* Update redundant frame information in EVS (pre- read indices) */
    test();
    test();
    IF( EQ_16( (Word16) hIvasDec->mode, IVAS_DEC_MODE_EVS ) && hIvasDec->hVoIP != NULL && hIvasDec->hVoIP->hCurrentDataUnit != NULL )
    {
        DEC_CORE_HANDLE st = hIvasDec->st_ivas->hSCE[0]->hCoreCoder[0];
        st->bit_stream = serial;

        test();
        IF( hIvasDec->hVoIP->hCurrentDataUnit->partial_frame || st->prev_use_partial_copy )
        {
            st->next_coder_type = hIvasDec->hVoIP->hCurrentDataUnit->nextCoderType;
        }
        ELSE
        {
            st->next_coder_type = INACTIVE;
        }
        move16();

        test();
        if ( EQ_16( (Word16) hIvasDec->hVoIP->hCurrentDataUnit->partial_frame, 1 ) && NE_16( bfi, 1 ) )
        {
            bfi = 2;
            move16();
        }
    }

    IF( NE_32( ( error = read_indices_fx( hIvasDec->st_ivas, serial, num_bits, &hIvasDec->prev_ft_speech, &hIvasDec->CNG, bfi ) ), IVAS_ERR_OK ) )
    {
        return error;