diff options
| author | Antonin Descampe <antonin@gmail.com> | 2005-12-08 14:47:40 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2005-12-08 14:47:40 +0000 |
| commit | 34c8a555fae47c62e3be26d39fad49cbfd8f0ed8 (patch) | |
| tree | 09623dd9f3f433e7a399b7733723027501f3f4b3 /libopenjpeg/t2.c | |
| parent | fe33ebe83c4b8b71328ed2a7c2c5efe3efe57e16 (diff) | |
fixed a bug when specifying a rate '-r' => no distortion info was available in the index
Diffstat (limited to 'libopenjpeg/t2.c')
| -rw-r--r-- | libopenjpeg/t2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index a239a0e9..dda0efca 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -558,6 +558,10 @@ int t2_encode_packets(opj_t2_t* t2, int tileno, opj_tcd_tile_t *tile, int maxlay return -999; } + if(image_info) { + image_info->num = 0; + } + for (pino = 0; pino <= cp->tcps[tileno].numpocs; pino++) { while (pi_next(&pi[pino])) { if (pi[pino].layno < maxlayers) { |
