fix for weird msvc warning message

" warning C4098: 'RescalerImportRowShrinkSSE2' : 'void' function returning a value"

Change-Id: Ifa893502e3e4b394910e142d954393dda9d59d1a
This commit is contained in:
Pascal Massimino 2015-10-10 22:34:54 -07:00
parent ae49ad8641
commit 74fb458bbc

View File

@ -37,11 +37,9 @@ static void RescalerImportRowShrinkSSE2(WebPRescaler* const wrk,
rescaler_t* frow = wrk->frow;
const rescaler_t* const frow_end = wrk->frow + 4 * wrk->dst_width;
if (wrk->num_channels != 4) {
return WebPRescalerImportRowShrinkC(wrk, src);
}
if (wrk->x_add > (x_sub << 7)) {
return WebPRescalerImportRowShrinkC(wrk, src);
if (wrk->num_channels != 4 || wrk->x_add > (x_sub << 7)) {
WebPRescalerImportRowShrinkC(wrk, src);
return;
}
assert(!WebPRescalerInputDone(wrk));
assert(!wrk->x_expand);