Commit 4900bbaa authored by vaclav's avatar vaclav
Browse files

Update ivas_ism_dtx_dec.c

parent c180b501
Loading
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -190,6 +190,21 @@ ivas_error ivas_ism_dtx_dec(
            st->bit_stream = st_ivas->hSCE[0]->hCoreCoder[0]->bit_stream;
            st->next_bit_pos = 0; /* note: needed in paramISM -> discISM switching */
            st->cng_ism_flag = 1;

            /* ISM objects with no SID: replicate 'sce_id_dtx' ISM parameters */
            if ( ivas_total_brate == IVAS_SID_5k2 && ch != sce_id_dtx ) /* note: 'sce_id_dtx' ISM parameters are read in ivas_decision_matrix_dec() */
            {
                st->total_brate = SID_2k40; /* just to avoid BER complaints; true 'total_brate' is set at the beginning of ivas_sce_dec() */
                st->bwidth = get_indice( st, 1, 2 );
                if ( get_indice( st, 1 + 2, 1 ) )
                {
                    st->L_frame = L_FRAME16k;
                }
                else
                {
                    st->L_frame = L_FRAME;
                }
            }            
#else
            ivas_ism_preprocessing( st_ivas, ch ); // VE: after the acceptance of switches, replace the function call by its content
#endif