summaryrefslogtreecommitdiff
path: root/drivers/webp/dsp/dec_sse41.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/webp/dsp/dec_sse41.c')
-rw-r--r--drivers/webp/dsp/dec_sse41.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/webp/dsp/dec_sse41.c b/drivers/webp/dsp/dec_sse41.c
index dc1e70428d..8d6aed13e6 100644
--- a/drivers/webp/dsp/dec_sse41.c
+++ b/drivers/webp/dsp/dec_sse41.c
@@ -17,12 +17,13 @@
#include <smmintrin.h>
#include "../dec/vp8i.h"
+#include "../utils/utils.h"
static void HE16(uint8_t* dst) { // horizontal
int j;
const __m128i kShuffle3 = _mm_set1_epi8(3);
for (j = 16; j > 0; --j) {
- const __m128i in = _mm_cvtsi32_si128(*(int*)(dst - 4));
+ const __m128i in = _mm_cvtsi32_si128(WebPMemToUint32(dst - 4));
const __m128i values = _mm_shuffle_epi8(in, kShuffle3);
_mm_storeu_si128((__m128i*)dst, values);
dst += BPS;