projects
/
openjpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added option for Digital cinema profile compliant codestream. This can be chosen...
[openjpeg.git]
/
libopenjpeg
/
cio.c
diff --git
a/libopenjpeg/cio.c
b/libopenjpeg/cio.c
index eadf71b2119851adb4815f1c0ffb7518287b2c29..6082e9be9f038736fc9755be97e769dcf9240781 100644
(file)
--- 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 =
cp->tdx * cp->tdy * cp->tw * cp->th * 4
;
+ cio->length =
(int) (1.3 * cp->img_size)
;
cio->buffer = (unsigned char *)opj_malloc(cio->length);
if(!cio->buffer) {
opj_free(cio);