diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-12-21 10:19:01 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-12-21 10:19:01 +0000 |
| commit | 287fb0b8fd3b8e57a63c82d9950340e75a09fe11 (patch) | |
| tree | 371bd898d185af5a84680a1c9103f5bff4253107 /libopenjpeg/pi.h | |
| parent | 847b082b64bb975555eac8876e28d2f15a9b56ad (diff) | |
Bug fixed by David Bruken. Fixed memory allocation issue in opj_malloc.h.
Possible errors in pi_create_encode handled
Diffstat (limited to 'libopenjpeg/pi.h')
| -rw-r--r-- | libopenjpeg/pi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libopenjpeg/pi.h b/libopenjpeg/pi.h index 9498ead8..b5e0f6a4 100644 --- a/libopenjpeg/pi.h +++ b/libopenjpeg/pi.h @@ -118,8 +118,9 @@ Modify the packet iterator for enabling tile part generation @param tpnum Tile part number of the current tile @param tppos The position of the tile part flag in the progression order @param cur_totnum_tp The total number of tile parts in the current tile +@return Returns true if an error is detected */ -void pi_create_encode( opj_pi_iterator_t *pi, opj_cp_t *cp,int tileno, int pino,int tpnum, int tppos, J2K_T2_MODE t2_mode,int cur_totnum_tp); +bool pi_create_encode(opj_pi_iterator_t *pi, opj_cp_t *cp,int tileno, int pino,int tpnum, int tppos, J2K_T2_MODE t2_mode,int cur_totnum_tp); /** Create a packet iterator for Decoder @param image Raw image for which the packets will be listed |
