Skip to content

Commit

Permalink
Fix crash in MSVC Debug build when use SSE 4.1 due uninitialized vari…
Browse files Browse the repository at this point in the history
…ables.
  • Loading branch information
Aleksoid1978 committed May 12, 2024
1 parent edd47ab commit b3514f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/Lib/CommonLib/x86/InterpolationFilterX86.h
Original file line number Diff line number Diff line change
Expand Up @@ -2997,7 +2997,13 @@ void simdFilter8xX_N4( const ClpRng& clpRng, const Pel* src, const ptrdiff_t src

__m128i vsum, vsuma, vsumb;

#ifdef NDEBUG
__m128i vsrcv0, vsrcv1, vsrcv2, vsrcv3;
#else
__m128i
vsrcv0 = _mm_setzero_si128(), vsrcv1 = _mm_setzero_si128(),
vsrcv2 = _mm_setzero_si128(), vsrcv3 = _mm_setzero_si128();
#endif

for( int row = 0; row < extHeight; row++ )
{
Expand Down

0 comments on commit b3514f7

Please sign in to comment.