a4bc068b18df7c486342c64f44f1dad19fcbd851
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gd / 0004-webp-pre.patch
1 Patch committed upstream
2 https://bitbucket.org/libgd/gd-libgd/commits/c7e5dc617c7466c44935cdefbe7e79de319f98ca?at=master
3
4 Downloaded from Gentoo
5 https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.1.1-webp-pre.patch?revision=1.1&view=markup
6
7 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
8
9 ---
10 https://bugs.gentoo.org/545956
11
12 From c7e5dc617c7466c44935cdefbe7e79de319f98ca Mon Sep 17 00:00:00 2001
13 From: Pierre Joye <pierre.php@gmail.com>
14 Date: Sat, 17 Jan 2015 08:20:17 +0100
15 Subject: [PATCH]  fix #111, invalid default quantization
16
17 ---
18  src/gd_webp.c | 3 +++
19  1 file changed, 3 insertions(+)
20
21 diff --git a/src/gd_webp.c b/src/gd_webp.c
22 index fae3861..a3ae1ac 100644
23 --- a/src/gd_webp.c
24 +++ b/src/gd_webp.c
25 @@ -185,6 +185,9 @@ BGD_DECLARE(void) gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantiza
26                 gd_error("gd-webp error: cannot allocate Y buffer");
27                 return;
28         }
29 +       if (quantization == -1) {
30 +               quantization = 80;
31 +       }
32         vp8_quality = mapQualityToVP8QP(quantization);
33  
34         U = Y + width * height;
35 -- 
36 2.3.5
37