From f50f66c0c9b00426ad85cbdb444b47b31f89171d Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Fri, 9 Jul 2004 14:37:12 +0000 Subject: [PATCH] scalar_derived quantization type bug fixed (2) --- libopenjpeg/j2k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c index a0ba1401..93d3001c 100644 --- a/libopenjpeg/j2k.c +++ b/libopenjpeg/j2k.c @@ -499,7 +499,7 @@ void j2k_read_qcx(int compno, int len) if (tccp->qntsty==J2K_CCP_QNTSTY_SIQNT) { for (bandno=1 ; bandnostepsizes[bandno].expn = ((tccp->stepsizes[0].expn)-((bandno-1)/3+1)>0)?(tccp->stepsizes[0].expn)-((bandno-1)/3+1):0; + tccp->stepsizes[bandno].expn = ((tccp->stepsizes[0].expn)-((bandno-1)/3)>0)?(tccp->stepsizes[0].expn)-((bandno-1)/3):0; tccp->stepsizes[bandno].mant = tccp->stepsizes[0].mant; } }