diff options
| author | Antonin Descampe <antonin@gmail.com> | 2008-08-21 16:00:44 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2008-08-21 16:00:44 +0000 |
| commit | 4a90f97639748de0164054a110171a2b4111eb13 (patch) | |
| tree | dadadc03f5fb1dfb72a86cee9ee85815d9dcf088 /codec | |
| parent | 4da178b0d83b6009e82bca1d9b7b2d5e1bceb6ad (diff) | |
fixed a bug in image_to_j2k.c that was preventing the 'r' option to work properly (everything was compressed lossless regardless of the specified rate).
Diffstat (limited to 'codec')
| -rw-r--r-- | codec/image_to_j2k.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c index 7e9436e1..89cbc3cc 100644 --- a/codec/image_to_j2k.c +++ b/codec/image_to_j2k.c @@ -670,6 +670,7 @@ int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *parameters, case 'r': /* rates rates/distorsion */ { char *s = optarg; + parameters->tcp_numlayers = 0; while (sscanf(s, "%f", ¶meters->tcp_rates[parameters->tcp_numlayers]) == 1) { parameters->tcp_numlayers++; while (*s && *s != ',') { |
