fixed bug from previous revision
This commit is contained in:
parent
75cb7a7b2c
commit
0e9da05873
|
@ -300,7 +300,7 @@ int main(int argc, char **argv)
|
||||||
Dim[1] = 0;
|
Dim[1] = 0;
|
||||||
TX0 = 0;
|
TX0 = 0;
|
||||||
TY0 = 0;
|
TY0 = 0;
|
||||||
cp.comment = "Created by OpenJPEG version 0.9";
|
cp.comment = NULL;
|
||||||
cp.disto_alloc = 0;
|
cp.disto_alloc = 0;
|
||||||
cp.fixed_alloc = 0;
|
cp.fixed_alloc = 0;
|
||||||
cp.fixed_quality = 0; //add fixed_quality
|
cp.fixed_quality = 0; //add fixed_quality
|
||||||
|
@ -688,7 +688,7 @@ int main(int argc, char **argv)
|
||||||
cp.tdx = img.x1 - cp.tx0;
|
cp.tdx = img.x1 - cp.tx0;
|
||||||
cp.tdy = img.y1 - cp.ty0;
|
cp.tdy = img.y1 - cp.ty0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialization for PPM marker */
|
/* Initialization for PPM marker */
|
||||||
cp.ppm = 0;
|
cp.ppm = 0;
|
||||||
cp.ppm_data = NULL;
|
cp.ppm_data = NULL;
|
||||||
|
@ -850,7 +850,6 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
fwrite(outbuf, 1, len, f);
|
fwrite(outbuf, 1, len, f);
|
||||||
free(outbuf);
|
free(outbuf);
|
||||||
free(jp2_struct->comps);
|
|
||||||
fclose(f);
|
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");
|
system("pause");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue