]> granicus.if.org Git - openjpeg/commitdiff
scalar_derived quantization type bug fixed (2)
authorAntonin Descampe <antonin@gmail.com>
Fri, 9 Jul 2004 14:37:12 +0000 (14:37 +0000)
committerAntonin Descampe <antonin@gmail.com>
Fri, 9 Jul 2004 14:37:12 +0000 (14:37 +0000)
libopenjpeg/j2k.c

index a0ba1401733f1a6039ecb82dc00184eabcf3c8d2..93d3001cf9656c6ab94b2dc6305dc092042e8cb5 100644 (file)
@@ -499,7 +499,7 @@ void j2k_read_qcx(int compno, int len)
 
   if (tccp->qntsty==J2K_CCP_QNTSTY_SIQNT) {
     for (bandno=1 ; bandno<J2K_MAXBANDS ; bandno++) {
-      tccp->stepsizes[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;
     }
   }