summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2004-07-14 15:15:07 +0000
committerAntonin Descampe <antonin@gmail.com>2004-07-14 15:15:07 +0000
commit0e9da058732df54a12e21055547aafe24a94a936 (patch)
tree67d72580956762996abfd87fc5bdaa69646c13c2 /codec
parent75cb7a7b2c7caa45c3e57686bce45c8e476d4d2a (diff)
fixed bug from previous revision
Diffstat (limited to 'codec')
-rw-r--r--codec/image_to_j2k.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index d07f23e4..50151ec4 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -300,7 +300,7 @@ int main(int argc, char **argv)
Dim[1] = 0;
TX0 = 0;
TY0 = 0;
- cp.comment = "Created by OpenJPEG version 0.9";
+ cp.comment = NULL;
cp.disto_alloc = 0;
cp.fixed_alloc = 0;
cp.fixed_quality = 0; //add fixed_quality
@@ -688,7 +688,7 @@ int main(int argc, char **argv)
cp.tdx = img.x1 - cp.tx0;
cp.tdy = img.y1 - cp.ty0;
}
-
+
/* Initialization for PPM marker */
cp.ppm = 0;
cp.ppm_data = NULL;
@@ -850,7 +850,6 @@ int main(int argc, char **argv)
}
fwrite(outbuf, 1, len, f);
free(outbuf);
- free(jp2_struct->comps);
fclose(f);
}
@@ -875,14 +874,6 @@ int main(int argc, char **argv)
}
}
- /* Free memory */
- free(img.comps);
- free(cp_init.tcps);
- if (tcp_init->numlayers > 9) free(cp.matrice);
- for (tileno = 0; tileno < cp.tw * cp.th; tileno++)
- free(cp.tcps[tileno].tccps);
- free(cp.tcps);
-
system("pause");
return 0;
}