summaryrefslogtreecommitdiff
path: root/libopenjpeg/t2.c
diff options
context:
space:
mode:
authorParvatha Elangovan <p.elangovan@intopix.com>2007-09-19 14:56:19 +0000
committerParvatha Elangovan <p.elangovan@intopix.com>2007-09-19 14:56:19 +0000
commit7e40a9475a8c29239b46133ee61675fe6cc76e92 (patch)
treea8861deaf49d535cb8e47420a81c25f48ac13cd7 /libopenjpeg/t2.c
parenta6ba04cdf49772f2e90515b277f174a0849bc8b6 (diff)
Fixed issues with generation of SOP marker.
Diffstat (limited to 'libopenjpeg/t2.c')
-rw-r--r--libopenjpeg/t2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c
index 84d8bee7..a30bb53a 100644
--- a/libopenjpeg/t2.c
+++ b/libopenjpeg/t2.c
@@ -147,8 +147,8 @@ static int t2_encode_packet(opj_tcd_tile_t * tile, opj_tcp_t * tcp, opj_pi_itera
c[1] = 145;
c[2] = 0;
c[3] = 4;
- c[4] = (cstr_info->packno % 65536) / 256;
- c[5] = (cstr_info->packno % 65536) % 256;
+ c[4] = (tile->packno % 65536) / 256;
+ c[5] = (tile->packno % 65536) % 256;
c += 6;
}
/* </SOP> */
@@ -656,6 +656,7 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
cstr_info->packno++;
}
/* << INDEX */
+ tile->packno++;
}
}
}