mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
Merge "always call WebPInitSamplers(), don't try to be smart"
This commit is contained in:
commit
158763dea3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user