summaryrefslogtreecommitdiff
path: root/libopenjpeg
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2005-09-13 14:11:41 +0000
committerAntonin Descampe <antonin@gmail.com>2005-09-13 14:11:41 +0000
commitcd98a4f7408930e3673b4d3311c29dd2ea25dc1a (patch)
treeb1d7dc93be9ceb0640fe7846ae7d1190305341dc /libopenjpeg
parente25e7e767e7195d06173be0a88b4225612c026f5 (diff)
bug fixed when freeing the memory allocated if ppm-marker or ppt-marker is used
Diffstat (limited to 'libopenjpeg')
-rw-r--r--libopenjpeg/j2k.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopenjpeg/j2k.h b/libopenjpeg/j2k.h
index 2ebdeb2c..e3fb36d7 100644
--- a/libopenjpeg/j2k.h
+++ b/libopenjpeg/j2k.h
@@ -125,6 +125,7 @@ typedef struct {
int POC; /* Precise if a POC marker has been used O:NO, 1:YES */
j2k_poc_t pocs[32]; /* progression order changes */
unsigned char *ppt_data; /* packet header store there for futur use in t2_decode_packet */
+ unsigned char *ppt_data_first; /* pointer remaining on the first byte of the first header if ppt is used */
int ppt; /* If ppt == 1 --> there was a PPT marker for the present tile */
int ppt_store; /* Use in case of multiple marker PPT (number of info already store) */
int ppt_len; /* ppmbug1 */
@@ -149,6 +150,7 @@ typedef struct {
int *tileno; /* ID number of the tiles present in the codestream */
int tileno_size; /* size of the vector tileno */
unsigned char *ppm_data; /* packet header store there for futur use in t2_decode_packet */
+ unsigned char *ppm_data_first; /* pointer remaining on the first byte of the first header if ppm is used */
int ppm; /* If ppm == 1 --> there was a PPM marker for the present tile */
int ppm_store; /* Use in case of multiple marker PPM (number of info already store) */
int ppm_previous; /* Use in case of multiple marker PPM (case on non-finished previous info) */