mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
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
This commit is contained in:
parent
d73d1c8b73
commit
ed1c2bc655
@ -536,6 +536,7 @@ static int CustomSetup(VP8Io* io) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_rgb) {
|
if (is_rgb) {
|
||||||
|
WebPInitSamplers();
|
||||||
p->emit = EmitSampledRGB; // default
|
p->emit = EmitSampledRGB; // default
|
||||||
if (io->fancy_upsampling) {
|
if (io->fancy_upsampling) {
|
||||||
#ifdef FANCY_UPSAMPLING
|
#ifdef FANCY_UPSAMPLING
|
||||||
@ -550,8 +551,6 @@ static int CustomSetup(VP8Io* io) {
|
|||||||
p->emit = EmitFancyRGB;
|
p->emit = EmitFancyRGB;
|
||||||
WebPInitUpsamplers();
|
WebPInitUpsamplers();
|
||||||
#endif
|
#endif
|
||||||
} else {
|
|
||||||
WebPInitSamplers();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
p->emit = EmitYUV;
|
p->emit = EmitYUV;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user