From ed1c2bc655a8e6ec92e195305c7f6586b82e0e7b Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Mon, 23 Nov 2015 09:53:52 -0800 Subject: [PATCH] always call WebPInitSamplers(), don't try to be smart if FANCY_UPSAMPLING was not defined but io->fancy_upsampling was set, then the call to WebPInitSamplers() was skipped -> boom. Change-Id: Id63e2ecc09f532fbe2ec9936d9ce4b502ba8fac5 --- src/dec/io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dec/io.c b/src/dec/io.c index e73cd54a..13e469ab 100644 --- a/src/dec/io.c +++ b/src/dec/io.c @@ -536,6 +536,7 @@ static int CustomSetup(VP8Io* io) { } } else { if (is_rgb) { + WebPInitSamplers(); p->emit = EmitSampledRGB; // default if (io->fancy_upsampling) { #ifdef FANCY_UPSAMPLING @@ -550,8 +551,6 @@ static int CustomSetup(VP8Io* io) { p->emit = EmitFancyRGB; WebPInitUpsamplers(); #endif - } else { - WebPInitSamplers(); } } else { p->emit = EmitYUV;