Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1826)

Unified Diff: third_party/libwebp/dsp/lossless_enc_sse41.c

Issue 2651883004: libwebp-0.6.0-rc1 (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libwebp/dsp/lossless_enc_sse2.c ('k') | third_party/libwebp/dsp/lossless_mips_dsp_r2.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libwebp/dsp/lossless_enc_sse41.c
diff --git a/third_party/libwebp/dsp/lossless_enc_sse41.c b/third_party/libwebp/dsp/lossless_enc_sse41.c
index 3e493198dbefc708a18d994bfcab4a6af9069b86..821057ccd4aaad073a12af7e0af080c4187da0e0 100644
--- a/third_party/libwebp/dsp/lossless_enc_sse41.c
+++ b/third_party/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);
+ }
}
//------------------------------------------------------------------------------
« no previous file with comments | « third_party/libwebp/dsp/lossless_enc_sse2.c ('k') | third_party/libwebp/dsp/lossless_mips_dsp_r2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698