Commit 8ba8f700 authored by vaclav's avatar vaclav
Browse files

fix crash to due low_rate vs. TCX mismatch

parent 5b03dcf5
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -170,6 +170,12 @@ void ivas_decision_matrix_enc(
            st->core = ACELP_CORE;
            st->coder_type = AUDIO;
            st->sp_aud_decision2 = 0;
#ifdef ISM_25k6_HZ_CORE
            if ( st->low_rate_mode )
            {
                st->coder_type = INACTIVE;
            }
#endif
        }
    }

@@ -224,6 +230,13 @@ void ivas_decision_matrix_enc(
            st->core = ACELP_CORE;
            st->coder_type = AUDIO;
            st->sp_aud_decision2 = 0;

#ifdef ISM_25k6_HZ_CORE
            if ( st->low_rate_mode )
            {
                st->coder_type = INACTIVE;
            }
#endif
        }
    }
#endif