mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-30 16:42:55 +01:00
fix for weird msvc warning message
" warning C4098: 'RescalerImportRowShrinkSSE2' : 'void' function returning a value" Change-Id: Ifa893502e3e4b394910e142d954393dda9d59d1a
This commit is contained in:
parent
ae49ad8641
commit
74fb458bbc
@ -37,11 +37,9 @@ static void RescalerImportRowShrinkSSE2(WebPRescaler* const wrk,
|
|||||||
rescaler_t* frow = wrk->frow;
|
rescaler_t* frow = wrk->frow;
|
||||||
const rescaler_t* const frow_end = wrk->frow + 4 * wrk->dst_width;
|
const rescaler_t* const frow_end = wrk->frow + 4 * wrk->dst_width;
|
||||||
|
|
||||||
if (wrk->num_channels != 4) {
|
if (wrk->num_channels != 4 || wrk->x_add > (x_sub << 7)) {
|
||||||
return WebPRescalerImportRowShrinkC(wrk, src);
|
WebPRescalerImportRowShrinkC(wrk, src);
|
||||||
}
|
return;
|
||||||
if (wrk->x_add > (x_sub << 7)) {
|
|
||||||
return WebPRescalerImportRowShrinkC(wrk, src);
|
|
||||||
}
|
}
|
||||||
assert(!WebPRescalerInputDone(wrk));
|
assert(!WebPRescalerInputDone(wrk));
|
||||||
assert(!wrk->x_expand);
|
assert(!wrk->x_expand);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user