summaryrefslogtreecommitdiff
path: root/src/bin/jp2/opj_dump.c
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2013-02-16 17:39:23 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2013-02-16 17:39:23 +0000
commit4bf4a7668eaeaa4b02051afe06b8ec3e0d805de3 (patch)
tree1e7b594fe97228ed16eb6268a8f9bf8c3175a06c /src/bin/jp2/opj_dump.c
parentc03ca9c73c15b893d5e952207224e3e339b5bbd6 (diff)
[trunk] move to the new API for function opj_stream_destroy. Use now opj_stream_destroy_v3 (WIP)
Diffstat (limited to 'src/bin/jp2/opj_dump.c')
-rw-r--r--src/bin/jp2/opj_dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/jp2/opj_dump.c b/src/bin/jp2/opj_dump.c
index 2bc1893a..0fb5d117 100644
--- a/src/bin/jp2/opj_dump.c
+++ b/src/bin/jp2/opj_dump.c
@@ -523,7 +523,7 @@ int main(int argc, char *argv[])
}
default:
fprintf(stderr, "skipping file..\n");
- opj_stream_destroy(l_stream);
+ opj_stream_destroy_v3(l_stream);
continue;
}
@@ -535,7 +535,7 @@ int main(int argc, char *argv[])
/* Setup the decoder decoding parameters using user parameters */
if ( !opj_setup_decoder(l_codec, &parameters) ){
fprintf(stderr, "ERROR -> opj_dump: failed to setup the decoder\n");
- opj_stream_destroy(l_stream);
+ opj_stream_destroy_v3(l_stream);
fclose(fsrc);
opj_destroy_codec(l_codec);
fclose(fout);
@@ -545,7 +545,7 @@ int main(int argc, char *argv[])
/* Read the main header of the codestream and if necessary the JP2 boxes*/
if(! opj_read_header(l_stream, l_codec, &image)){
fprintf(stderr, "ERROR -> opj_dump: failed to read the header\n");
- opj_stream_destroy(l_stream);
+ opj_stream_destroy_v3(l_stream);
fclose(fsrc);
opj_destroy_codec(l_codec);
opj_image_destroy(image);
@@ -560,7 +560,7 @@ int main(int argc, char *argv[])
cstr_index = opj_get_cstr_index(l_codec);
/* close the byte stream */
- opj_stream_destroy(l_stream);
+ opj_stream_destroy_v3(l_stream);
fclose(fsrc);
/* free remaining structures */