summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-08-08 09:41:16 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-08-08 09:41:16 +0000
commit7dcb817e6acf9ec78a1bf09dfa9b188dd18e68b6 (patch)
tree7fda3ea0e337a8ab5fd7b9e2dcf7dee981ea638e /codec
parent9cf692e89773ac83cebbb2969039913ce761c11d (diff)
Fixed the DCinema filesize allocation. It now includes the SOT marker size
Diffstat (limited to 'codec')
-rw-r--r--codec/convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codec/convert.c b/codec/convert.c
index 17ecf49b..81b34dc9 100644
--- a/codec/convert.c
+++ b/codec/convert.c
@@ -1188,7 +1188,7 @@ int imagetotif(opj_image_t * image, const char *outfile) {
dat8[i+1] = (image->comps[0].data[index]<<4)|((image->comps[1].data[index]>>8)& 0x0f);
dat8[i+2] = (image->comps[1].data[index]);
dat8[i+3] = (image->comps[2].data[index]>>8)<<4 | (image->comps[2].data[index]>>4);
- dat8[i+4] = (image->comps[2].data[index]<<4)|((image->comps[1].data[index+1]>>8)& 0x0f);
+ dat8[i+4] = (image->comps[2].data[index]<<4)|((image->comps[0].data[index+1]>>8)& 0x0f);
dat8[i+5] = (image->comps[0].data[index+1]);
dat8[i+6] = (image->comps[1].data[index+1]>>8)<<4 | (image->comps[1].data[index+1]>>4);
dat8[i+7] = (image->comps[1].data[index+1]<<4)|((image->comps[2].data[index+1]>>8)& 0x0f);