summaryrefslogtreecommitdiff
path: root/libopenjpeg/jp2.c
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2004-08-31 09:17:06 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2004-08-31 09:17:06 +0000
commit3c730a804bb5914945d3b8fa815fd92f38401889 (patch)
tree3b2a2230f429b28eaff311c94137edd013468038 /libopenjpeg/jp2.c
parent313975debf51f34e58d8cbe5217ceb8c9619d4ee (diff)
Order of data written to jp2_struct->cl inversed in jp2_read_ftyp function
Diffstat (limited to 'libopenjpeg/jp2.c')
-rw-r--r--libopenjpeg/jp2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c
index a7f9fddc..01cc83aa 100644
--- a/libopenjpeg/jp2.c
+++ b/libopenjpeg/jp2.c
@@ -415,7 +415,7 @@ int jp2_read_ftyp(jp2_struct_t * jp2_struct)
jp2_struct->cl =
(unsigned int *) malloc(jp2_struct->numcl * sizeof(unsigned int));
- for (i = jp2_struct->numcl; i > 0; i--)
+ for (i = 0; i < jp2_struct->numcl; i++)
jp2_struct->cl[i] = cio_read(4); /* CLi */
if (cio_tell() - box.init_pos != box.length) {