Commit 1c354de4 authored by bayers's avatar bayers
Browse files

fix #975, only check for a partial copy in EVS decoding mode

parent 4ed68180
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -160,6 +160,7 @@
#define FIX_959_MASA_LINEAR_REND                        /* VA: issue 959: remove unused calling of ivas_sba_linear_renderer() in MASA rendering */
#define FIX_963_USAN_ERROR                              /* Eri: Issue 963: USAN error in Stereo CNG, division by zero */
#define FIX_971_LOG2_IDX_GAIN_0                         /* VA: prevent -Inf due to log2(ratio==0) */
#define FIX_975_JBM_USAN

/* #################### End BE switches ################################## */

+12 −2
Original line number Diff line number Diff line
@@ -2365,8 +2365,18 @@ ivas_error IVAS_DEC_VoIP_FeedFrame(
        return IVAS_ERR_INVALID_BITSTREAM;
    }

#ifdef FIX_975_JBM_USAN
    partialCopyFrameType = 0;
    partialCopyOffset = 0;

    if ( hIvasDec->mode == IVAS_DEC_MODE_EVS )
    {
#endif
        /* check if frame contains a partial copy and get its offset */
        evs_dec_previewFrame( au, auSize, &partialCopyFrameType, &partialCopyOffset );
#ifdef FIX_975_JBM_USAN
    }
#endif

    /* create data unit for primary copy in the frame */
    dataUnit = JB4_AllocDataUnit( hIvasDec->hVoIP->hJBM );