From 96866f90cd198a2e0382990a1e5f1a8af473b49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= Date: Mon, 9 Jul 2018 13:01:19 +0100 Subject: [PATCH] [QuantOctree.c] Remove further attempts to average over empty buckets: * Skip cube updates for empty buckets in "add_lookup_buckets". * Don't explicitly set pixel value in create_palette_array; the array is already zero-initialized, and zero is as good as any value for the average over nothing. --- src/libImaging/QuantOctree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libImaging/QuantOctree.c b/src/libImaging/QuantOctree.c index 6c0f605c9..64a734bf4 100644 --- a/src/libImaging/QuantOctree.c +++ b/src/libImaging/QuantOctree.c @@ -296,6 +296,7 @@ void add_lookup_buckets(ColorCube cube, ColorBucket palette, long nColors, long long i; Pixel p; for (i=offset; i