Several bugs fixed when dealing with pgx-files with more than 8 bpp and the fixed_qua...
[openjpeg.git] / codec / image_to_j2k.c
index 132f8f88f0082a6d24c8ecabda2b763d9d13552a..e64616abf99cb8875955b05a4b45a3c47f8c9082 100644 (file)
@@ -659,13 +659,13 @@ int main(int argc, char **argv)
   if ((cp.disto_alloc || cp.fixed_alloc || cp.fixed_quality)
       && (!(cp.disto_alloc ^ cp.fixed_alloc ^ cp.fixed_quality))) {
     fprintf(stderr,
-           "Error: options -r -q and -f can not be used together !!\n");
+           "Error: options -r -q and -f cannot be used together !!\n");
     return 1;
   }                            // mod fixed_quality
 
   /* if no rate entered, lossless by default */
   if (tcp_init->numlayers == 0) {
-    tcp_init->rates[tcp_init->numlayers] = 0;  //MOD antonin : losslessbug
+    tcp_init->rates[0] = 0;    //MOD antonin : losslessbug
     tcp_init->numlayers++;
     cp.disto_alloc = 1;
   }