diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-07-13 13:07:07 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-07-13 13:07:07 +0000 |
| commit | 5dec8bbbe9eb29454d0b1721ff137a9f98752449 (patch) | |
| tree | b6a03cbf55263f43e367474179bbae6e26373306 /libopenjpeg/cio.c | |
| parent | 4a50efe542e2c5a7ed32151f3124bd229ae70d1e (diff) | |
Diffstat (limited to 'libopenjpeg/cio.c')
| -rw-r--r-- | libopenjpeg/cio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/cio.c b/libopenjpeg/cio.c index cb0c3e4a..a462edb2 100644 --- a/libopenjpeg/cio.c +++ b/libopenjpeg/cio.c @@ -58,7 +58,7 @@ opj_cio_t* OPJ_CALLCONV opj_cio_open(opj_common_ptr cinfo, unsigned char *buffer opj_free(cio); return NULL; } - cio->length = (int) (0.1625 * cp->img_size); /* 0.1625 = 1.3/8 */ + cio->length = (int) (0.1625 * cp->img_size + 2000); /* 0.1625 = 1.3/8 and 2000 bytes as a minimum for headers */ cio->buffer = (unsigned char *)opj_malloc(cio->length); if(!cio->buffer) { opj_free(cio); |
