From 70b24b021a7c222df05154f5f35af7a365516d04 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 14 May 2012 07:11:02 +0000 Subject: [PATCH] [trunk] Fix using proper v2 function --- tests/test_tile_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_tile_decoder.c b/tests/test_tile_decoder.c index 8ea17085..fc0d6d1d 100644 --- a/tests/test_tile_decoder.c +++ b/tests/test_tile_decoder.c @@ -125,7 +125,7 @@ int main () /* to decode only a part of the image data */ //opj_restrict_decoding(&l_param,0,0,1000,1000); - l_codec = opj_create_decompress(CODEC_J2K); + l_codec = opj_create_decompress_v2(CODEC_J2K); if (! l_codec) { @@ -140,7 +140,7 @@ int main () opj_event_mgr_t l_event_mgr; if - (! opj_setup_decoder_v2(l_codec,&l_param,&l_event_mgr)) + (! opj_setup_decoder_v2(l_codec,&l_param)) { free(l_data); opj_destroy_codec(l_codec);