diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-08 09:41:16 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-08 09:41:16 +0000 |
| commit | 7dcb817e6acf9ec78a1bf09dfa9b188dd18e68b6 (patch) | |
| tree | 7fda3ea0e337a8ab5fd7b9e2dcf7dee981ea638e /libopenjpeg/t2.c | |
| parent | 9cf692e89773ac83cebbb2969039913ce761c11d (diff) | |
Fixed the DCinema filesize allocation. It now includes the SOT marker size
Diffstat (limited to 'libopenjpeg/t2.c')
| -rw-r--r-- | libopenjpeg/t2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index f8bda1ca..6c0e012b 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -586,7 +586,7 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye for(poc = 0; poc < pocno ; poc++){ int comp_len = 0; int tpnum = compno; - pi_create_encode(pi, cp,tileno,poc,tpnum,tppos); + pi_create_encode(pi, cp,tileno,poc,tpnum,tppos,t2_mode); while (pi_next(&pi[poc])) { if (pi[poc].layno < maxlayers) { e = t2_encode_packet(tile, &cp->tcps[tileno], &pi[poc], c, dest + len - c, image_info, tileno); @@ -609,7 +609,7 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye if (e == -999) break; } }else{ /* t2_mode == FINAL_PASS */ - pi_create_encode(pi, cp,tileno,pino,tpnum,tppos); + pi_create_encode(pi, cp,tileno,pino,tpnum,tppos,t2_mode); while (pi_next(&pi[pino])) { if (pi[pino].layno < maxlayers) { e = t2_encode_packet(tile, &cp->tcps[tileno], &pi[pino], c, dest + len - c, image_info, tileno); @@ -715,3 +715,4 @@ void t2_destroy(opj_t2_t *t2) { } } + |
