diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-02-16 17:39:23 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2013-02-16 17:39:23 +0000 |
| commit | 4bf4a7668eaeaa4b02051afe06b8ec3e0d805de3 (patch) | |
| tree | 1e7b594fe97228ed16eb6268a8f9bf8c3175a06c /tests/test_tile_decoder.c | |
| parent | c03ca9c73c15b893d5e952207224e3e339b5bbd6 (diff) | |
[trunk] move to the new API for function opj_stream_destroy. Use now opj_stream_destroy_v3 (WIP)
Diffstat (limited to 'tests/test_tile_decoder.c')
| -rw-r--r-- | tests/test_tile_decoder.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_tile_decoder.c b/tests/test_tile_decoder.c index 81f791cb..1dd3382f 100644 --- a/tests/test_tile_decoder.c +++ b/tests/test_tile_decoder.c @@ -270,7 +270,7 @@ int main (int argc, char *argv[]) fprintf(stderr, "ERROR -> Not a valid JPEG2000 file!\n"); fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); return EXIT_FAILURE; } } @@ -286,7 +286,7 @@ int main (int argc, char *argv[]) fprintf(stderr, "ERROR -> j2k_dump: failed to setup the decoder\n"); fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); return EXIT_FAILURE; } @@ -297,7 +297,7 @@ int main (int argc, char *argv[]) fprintf(stderr, "ERROR -> j2k_to_image: failed to read the header\n"); fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); return EXIT_FAILURE; } @@ -306,7 +306,7 @@ int main (int argc, char *argv[]) fprintf(stderr, "ERROR -> j2k_to_image: failed to set the decoded area\n"); fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -328,7 +328,7 @@ int main (int argc, char *argv[]) { fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -343,7 +343,7 @@ int main (int argc, char *argv[]) { fclose(l_file); free(l_new_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -356,7 +356,7 @@ int main (int argc, char *argv[]) { fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -369,7 +369,7 @@ int main (int argc, char *argv[]) { fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); return EXIT_FAILURE; @@ -378,7 +378,7 @@ int main (int argc, char *argv[]) /* Free memory */ fclose(l_file); free(l_data); - opj_stream_destroy(l_stream); + opj_stream_destroy_v3(l_stream); opj_destroy_codec(l_codec); opj_image_destroy(l_image); |
