From 5e9edbd6d51f2d34055870ee87716917511b8658 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 10 Jun 2015 12:49:52 +0100 Subject: [PATCH] oops swap HSV2sRGB IO interpretation we were overflowing the stack --- libvips/colour/HSV2sRGB.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvips/colour/HSV2sRGB.c b/libvips/colour/HSV2sRGB.c index c61142ae..aa0a1822 100644 --- a/libvips/colour/HSV2sRGB.c +++ b/libvips/colour/HSV2sRGB.c @@ -82,14 +82,14 @@ vips_HSV2sRGB_init( VipsHSV2sRGB *HSV2sRGB ) VipsColour *colour = VIPS_COLOUR( HSV2sRGB ); VipsColourCode *code = VIPS_COLOUR_CODE( HSV2sRGB ); - colour->interpretation = VIPS_INTERPRETATION_HSV; + colour->interpretation = VIPS_INTERPRETATION_sRGB; colour->format = VIPS_FORMAT_UCHAR; colour->bands = 3; colour->input_bands = 3; code->input_coding = VIPS_CODING_NONE; code->input_format = VIPS_FORMAT_UCHAR; - code->input_interpretation = VIPS_INTERPRETATION_sRGB; + code->input_interpretation = VIPS_INTERPRETATION_HSV; } /**