Fix up-scaling bit depth
authormayeut <mayeut@users.noreply.github.com>
Tue, 29 Sep 2015 07:28:34 +0000 (09:28 +0200)
committermayeut <mayeut@users.noreply.github.com>
Tue, 29 Sep 2015 07:28:34 +0000 (09:28 +0200)
Fixes #609

src/bin/jp2/convert.c

index 1a18711caf0096fde67b054438dc9b85091ccde9..73ec9f6e68a823b370da954cc5bcc7a1ee3d5110 100644 (file)
@@ -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)
 {