Skip to content

Commit 9df3b96

Browse files
committed
use vips_image_decode() in colour.c
1 parent dfc1d15 commit 9df3b96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libvips/colour/colour.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ vips_colour_code_build(VipsObject *object)
407407
/* If this is a LABQ and the coder wants uncoded, unpack.
408408
*/
409409
if (in &&
410-
in->Coding == VIPS_CODING_LABQ &&
411-
code->input_coding == VIPS_CODING_NONE) {
412-
if (vips_LabQ2Lab(in, &t[0], NULL))
410+
code->input_coding == VIPS_CODING_NONE &&
411+
in->Coding != code->input_coding) {
412+
if (vips_image_decode(in, &t[0]))
413413
return -1;
414414
in = t[0];
415415
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy