Commit 16b3fe61 authored by vaillancour's avatar vaillancour Committed by Sandesh Venkatesh
Browse files

Fix bitrate switching

parent 3f70046d
Loading
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1817,6 +1817,16 @@ ivas_error IVAS_ENC_EncodeFrameToSerial(
        /* set pointers to the new buffers of indices in each element */
        FOR( n = 0; n < st_ivas->nSCE; n++ )
        {
#ifdef HARM_PUSH_BIT
            st_ivas->hSCE[n]->hCoreCoder[0]->hBstr->ind_list = st_ivas->ind_list;
            st_ivas->hSCE[n]->hCoreCoder[0]->hBstr->ivas_ind_list_zero = &st_ivas->ind_list;

            if ( st_ivas->hSCE[n]->hMetaData != NULL )
            {
                st_ivas->hSCE[n]->hMetaData->ind_list = st_ivas->ind_list_metadata;
                st_ivas->hSCE[n]->hMetaData->ivas_ind_list_zero = &st_ivas->ind_list_metadata;
            }
#else
            test();
            IF( !( hIvasEnc->hCoreCoder == NULL && EQ_32( hEncoderConfig->ivas_format, MONO_FORMAT ) ) )
            {
@@ -1832,6 +1842,7 @@ ivas_error IVAS_ENC_EncodeFrameToSerial(
                st_ivas->hSCE[n]->hMetaData->ind_list = st_ivas->ind_list_metadata;
                st_ivas->hSCE[n]->hMetaData->ivas_ind_list_zero = &st_ivas->ind_list_metadata;
            }
#endif
        }

        FOR( n = 0; n < st_ivas->nCPE; n++ )