From cf352af089bd6adc89130fa839c57779e4870e6f Mon Sep 17 00:00:00 2001 From: mayeut Date: Tue, 29 Sep 2015 09:28:34 +0200 Subject: [PATCH] Fix up-scaling bit depth Fixes #609 --- src/bin/jp2/convert.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 1a18711c..73ec9f6e 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -114,6 +114,7 @@ static void scale_component_up(opj_image_comp_t* component, OPJ_UINT32 precision } } component->prec = precision; + component->bpp = precision; } void scale_component(opj_image_comp_t* component, OPJ_UINT32 precision) {