Skip to content

Commit

Permalink
Merge pull request #176 from Aleksoid1978/master
Browse files Browse the repository at this point in the history
 Fix crash in MSVC Debug build when use SSE 4.1 due uninitialized variables.
  • Loading branch information
adamjw24 authored May 15, 2024
2 parents edd47ab + b3514f7 commit 531b671
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 531b671

Please sign in to comment.