Commit 46751a68 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] crash for 1ISM with right binaural channel written to invalid pointer

parent ad943542
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -803,7 +803,8 @@ void ObjRenderIvasFrame_splitBinaural(
            }
        }
#ifdef SPLIT_REND_LC3PLUS_MC
        for ( i = 0; i < st_ivas->nchan_transport; ++i )
        /* Handle the 1 ISM case where there is only one channel in the input buffer */
        for ( i = 0; i < max( st_ivas->nchan_transport, BINAURAL_CHANNELS ); ++i )
#else
        for ( i = 0; i < BINAURAL_CHANNELS; i++ )
#endif