diff options
| author | Antonin Descampe <antonin@gmail.com> | 2009-09-10 13:10:09 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2009-09-10 13:10:09 +0000 |
| commit | b1d8788a464e0de986eabab0fb22c8d857b89c78 (patch) | |
| tree | 5736ffb54e61965d820b8469cf2a7c1c61a23a81 /codec/index.c | |
| parent | 1915409c92e62bfba02598ac1d8adf27c5e44864 (diff) | |
fixed minor bugs which were triggering warnings at compilation (different signedness, wrong pointer type, etc)
Diffstat (limited to 'codec/index.c')
| -rw-r--r-- | codec/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codec/index.c b/codec/index.c index 2e0283dd..873b3403 100644 --- a/codec/index.c +++ b/codec/index.c @@ -79,7 +79,7 @@ int write_index_file(opj_codestream_info_t *cstr_info, char *index) { fprintf(stream, "%d %d\n", cstr_info->tw, cstr_info->th);
fprintf(stream, "%d\n", cstr_info->numcomps);
fprintf(stream, "%d\n", cstr_info->numlayers);
- fprintf(stream, "%d\n", cstr_info->numdecompos);
+ fprintf(stream, "%d\n", cstr_info->numdecompos[0]); /* based on component 0 */
for (resno = cstr_info->numdecompos[0]; resno >= 0; resno--) {
fprintf(stream, "[%d,%d] ",
|
