summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorak-dxdy <Alexey.K@dxdy.ru>2015-07-30 21:49:16 +0300
committermayeut <mayeut@users.noreply.github.com>2015-07-31 00:51:31 +0200
commitacbb297a0a2c891133110065e5371f290564366b (patch)
tree5730f57dd64722cabe7aa5b9a9757154ed089602 /src
parent4fc1073809ebdcde49d3ba318216445bbda0212b (diff)
Small correction + attempt to understand git-openjpeg workflow
Diffstat (limited to 'src')
-rw-r--r--src/bin/jp2/convert.c2
1 files changed, 1 insertions, 1 deletions
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;