[trunk]extend last commits to apps
[openjpeg.git] / tests / j2k_random_tile_access.c
index f87c36ea088b2434caa9deb3a061b45492e2bbfb..23420f4eddddf0d56f03285aab5ba3d447a97492 100644 (file)
@@ -196,19 +196,19 @@ int main(int argc, char **argv)
                case J2K_CFMT:  /* JPEG-2000 codestream */
                {
                        /* Get a decoder handle */
-                       l_codec = opj_create_decompress(CODEC_J2K);
+                       l_codec = opj_create_decompress(OPJ_CODEC_J2K);
                        break;
                }
                case JP2_CFMT:  /* JPEG 2000 compressed image data */
                {
                        /* Get a decoder handle */
-                       l_codec = opj_create_decompress(CODEC_JP2);
+                       l_codec = opj_create_decompress(OPJ_CODEC_JP2);
                        break;
                }
                case JPT_CFMT:  /* JPEG 2000, JPIP */
                {
                        /* Get a decoder handle */
-                       l_codec = opj_create_decompress(CODEC_JPT);
+                       l_codec = opj_create_decompress(OPJ_CODEC_JPT);
                        break;
                }
                default: