Order of data written to jp2_struct->cl inversed in jp2_read_ftyp function

This commit is contained in:
Francois-Olivier Devaux 2004-08-31 09:17:06 +00:00
parent 313975debf
commit 3c730a804b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {