[trunk] remove deprecated v1 style function opj_create_compress

This commit is contained in:
Mickael Savinaud
2012-08-09 12:26:04 +00:00
parent 3f9fb13df6
commit 9a9897a9de
3 changed files with 12 additions and 48 deletions

View File

@@ -818,7 +818,7 @@ int main(int argc, char **argv)
}
/* Get the decoded image */
if (!(opj_decode_v2(l_codec, l_stream, image) && opj_end_decompress(l_codec, l_stream))) {
if (!(opj_decode(l_codec, l_stream, image) && opj_end_decompress(l_codec, l_stream))) {
fprintf(stderr,"ERROR -> j2k_to_image: failed to decode image!\n");
opj_destroy_codec(l_codec);
opj_stream_destroy(l_stream);