summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-09-29 09:28:34 +0200
committermayeut <mayeut@users.noreply.github.com>2015-09-29 09:28:34 +0200
commitcf352af089bd6adc89130fa839c57779e4870e6f (patch)
treec747e2d0789067645b49434d0f8bd40a4b9fc2da /src/bin
parentc59f464a3f83c633a679d6b46d9b23e5efcb7447 (diff)
Fix up-scaling bit depth
Fixes #609
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jp2/convert.c1
1 files changed, 1 insertions, 0 deletions
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)
{