diff options
author | volzhs <volzhs@gmail.com> | 2017-02-17 23:49:40 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2017-02-17 23:49:40 +0900 |
commit | 6de3defe7271441f6e55e1a0ed5e115a92a72606 (patch) | |
tree | 70cbb89a4a91a6f4731a4cbfc2792b56c86dddbe /thirdparty/libwebp/dsp/lossless_enc_sse41.c | |
parent | 903a3aa5f0e128abb1fb752c10b343b34af8f799 (diff) |
Update libwebp to 0.6.0
Diffstat (limited to 'thirdparty/libwebp/dsp/lossless_enc_sse41.c')
-rw-r--r-- | thirdparty/libwebp/dsp/lossless_enc_sse41.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/thirdparty/libwebp/dsp/lossless_enc_sse41.c b/thirdparty/libwebp/dsp/lossless_enc_sse41.c index 3e493198db..821057ccd4 100644 --- a/thirdparty/libwebp/dsp/lossless_enc_sse41.c +++ b/thirdparty/libwebp/dsp/lossless_enc_sse41.c @@ -32,7 +32,9 @@ static void SubtractGreenFromBlueAndRed(uint32_t* argb_data, int num_pixels) { _mm_storeu_si128((__m128i*)&argb_data[i], out); } // fallthrough and finish off with plain-C - VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); + if (i != num_pixels) { + VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); + } } //------------------------------------------------------------------------------ |