summaryrefslogtreecommitdiff
path: root/libopenjpeg/cio.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-09-09 14:49:08 +0000
committerAntonin Descampe <antonin@gmail.com>2011-09-09 14:49:08 +0000
commitfa720c1858c5bccc70d9b0a8413c944c64d73b04 (patch)
tree60c7372c83acc30356b9ebf345775f7f5c02aeb3 /libopenjpeg/cio.c
parentbc7c3e44d559b7772fe5e76d04084fb13c292a91 (diff)
TRUNK:added a new indexer functionality to the library. With the new -jpip option at encoding, the user can now generate a JP2 file including an XML box with the index used when browsing the image with JPIP
Diffstat (limited to 'libopenjpeg/cio.c')
-rw-r--r--libopenjpeg/cio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/cio.c b/libopenjpeg/cio.c
index 3b0f816f..b8a7ecf8 100644
--- a/libopenjpeg/cio.c
+++ b/libopenjpeg/cio.c
@@ -152,7 +152,7 @@ unsigned char cio_bytein(opj_cio_t *cio) {
* v : value to write
* n : number of bytes to write
*/
-unsigned int cio_write(opj_cio_t *cio, unsigned int v, int n) {
+unsigned int cio_write(opj_cio_t *cio, unsigned long long int v, int n) {
int i;
for (i = n - 1; i >= 0; i--) {
if( !cio_byteout(cio, (unsigned char) ((v >> (i << 3)) & 0xff)) )