summaryrefslogtreecommitdiff
path: root/libopenjpeg/j2k.c
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 /libopenjpeg/j2k.c
parent9cf692e89773ac83cebbb2969039913ce761c11d (diff)
Fixed the DCinema filesize allocation. It now includes the SOT marker size
Diffstat (limited to 'libopenjpeg/j2k.c')
-rw-r--r--libopenjpeg/j2k.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopenjpeg/j2k.c b/libopenjpeg/j2k.c
index 9cb99e86..8fabbf96 100644
--- a/libopenjpeg/j2k.c
+++ b/libopenjpeg/j2k.c
@@ -1348,7 +1348,6 @@ static void j2k_write_sod(opj_j2k_t *j2k, void *tile_coder) {
tcd->tp_num = j2k->tp_num ;
tcd->cur_tp_num = j2k->cur_tp_num;
- tcd->cur_totnum_tp = j2k->cur_totnum_tp[j2k->curtileno];
cio_write(cio, J2K_MS_SOD, 2);
if (j2k->curtileno == 0) {
@@ -2515,7 +2514,7 @@ bool j2k_encode(opj_j2k_t *j2k, opj_cio_t *cio, opj_image_t *image, char *index)
j2k->curtileno = tileno;
j2k->cur_tp_num = 0;
-
+ tcd->cur_totnum_tp = j2k->cur_totnum_tp[j2k->curtileno];
/* initialisation before tile encoding */
if (tileno == 0) {
tcd_malloc_encode(tcd, image, cp, j2k->curtileno);
@@ -2632,3 +2631,4 @@ bool j2k_encode(opj_j2k_t *j2k, opj_cio_t *cio, opj_image_t *image, char *index)
return true;
}
+