From: ak-dxdy Date: Thu, 30 Jul 2015 18:49:16 +0000 (+0300) Subject: Small correction + attempt to understand git-openjpeg workflow X-Git-Tag: v2.1.1~22^2~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acbb297a0a2c891133110065e5371f290564366b;p=openjpeg Small correction + attempt to understand git-openjpeg workflow --- diff --git a/src/bin/jp2/convert.c b/src/bin/jp2/convert.c index 8e448d7e..a894a369 100644 --- a/src/bin/jp2/convert.c +++ b/src/bin/jp2/convert.c @@ -2049,7 +2049,7 @@ static opj_image_t* rawtoimage_common(const char *filename, opj_cparameters_t *p { unsigned short value; for(compno = 0; compno < numcomps; compno++) { - int nloop = (w*h)/(raw_cp->rawComps[compno].dx*raw_cp->rawComps[compno].dx); + int nloop = (w*h)/(raw_cp->rawComps[compno].dx*raw_cp->rawComps[compno].dy); for (i = 0; i < nloop; i++) { unsigned char temp1; unsigned char temp2;