summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulien Malik <julien.malik@paraiso.me>2011-12-01 09:02:04 +0000
committerJulien Malik <julien.malik@paraiso.me>2011-12-01 09:02:04 +0000
commitd569430cc6013ff652f95737cb9def7e327a172e (patch)
tree99f049389bf66b8c7bc7f9cd470ea6f4b35a25fb /tests
parentc39bea201736116058f337211a64e7bffcc41f00 (diff)
[trunk] fix compilation of j2k_random_access on Visual C++
Diffstat (limited to 'tests')
-rw-r--r--tests/j2k_random_tile_access.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/j2k_random_tile_access.c b/tests/j2k_random_tile_access.c
index 4230ed61..f6daef18 100644
--- a/tests/j2k_random_tile_access.c
+++ b/tests/j2k_random_tile_access.c
@@ -164,6 +164,12 @@ int main(int argc, char **argv)
opj_codec_t* dinfo = NULL; /* Handle to a decompressor */
opj_codestream_info_v2_t* cstr_info = NULL;
+ /* Index of corner tiles */
+ OPJ_UINT32 tile_ul = 0;
+ OPJ_UINT32 tile_ur = 0;
+ OPJ_UINT32 tile_lr = 0;
+ OPJ_UINT32 tile_ll = 0;
+
if (argc != 2) {
fprintf(stderr, "Usage: %s <input_file>\n", argv[0]);
return EXIT_FAILURE;
@@ -249,10 +255,10 @@ int main(int argc, char **argv)
fprintf(stdout, "The file contains %dx%d tiles\n", cstr_info->tw, cstr_info->th);
- OPJ_UINT32 tile_ul = 0;
- OPJ_UINT32 tile_ur = cstr_info->tw - 1;
- OPJ_UINT32 tile_lr = cstr_info->tw * cstr_info->th - 1;
- OPJ_UINT32 tile_ll = tile_lr - cstr_info->tw;
+ tile_ul = 0;
+ tile_ur = cstr_info->tw - 1;
+ tile_lr = cstr_info->tw * cstr_info->th - 1;
+ tile_ll = tile_lr - cstr_info->tw;
#define TEST_TILE( tile_index ) \
fprintf(stdout, "Decoding tile %d ...\n", tile_index); \