summaryrefslogtreecommitdiff
path: root/thirdparty/libwebp/dsp/rescaler.c
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2016-12-22 09:54:15 +0900
committervolzhs <volzhs@gmail.com>2016-12-24 00:46:09 +0900
commite04c7e11ec2fabf34aaf515103bc0b6086e1aabd (patch)
tree7e8e1947eb71efe8bf45632610ee2776c9ef0b3e /thirdparty/libwebp/dsp/rescaler.c
parent2c8a1729152f5bcb1cb81d24b1e642634bff7174 (diff)
Update libwebp to 0.5.2
Diffstat (limited to 'thirdparty/libwebp/dsp/rescaler.c')
-rw-r--r--thirdparty/libwebp/dsp/rescaler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thirdparty/libwebp/dsp/rescaler.c b/thirdparty/libwebp/dsp/rescaler.c
index bc743d5dc5..f5b07756cf 100644
--- a/thirdparty/libwebp/dsp/rescaler.c
+++ b/thirdparty/libwebp/dsp/rescaler.c
@@ -173,10 +173,10 @@ void WebPRescalerExportRow(WebPRescaler* const wrk) {
WebPRescalerExportRowExpand(wrk);
} else if (wrk->fxy_scale) {
WebPRescalerExportRowShrink(wrk);
- } else { // very special case for src = dst = 1x1
+ } else { // special case
int i;
+ assert(wrk->src_height == wrk->dst_height && wrk->x_add == 1);
assert(wrk->src_width == 1 && wrk->dst_width <= 2);
- assert(wrk->src_height == 1 && wrk->dst_height == 1);
for (i = 0; i < wrk->num_channels * wrk->dst_width; ++i) {
wrk->dst[i] = wrk->irow[i];
wrk->irow[i] = 0;