From 123a680669995d50f354dd0159c83e7803a70ef3 Mon Sep 17 00:00:00 2001 From: Giuseppe Baruffa Date: Tue, 23 Oct 2007 14:33:40 +0000 Subject: Improved success for the linux build; OPJViewer shows all the COM contents --- OPJViewer/source/imagjp2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OPJViewer/source/imagjp2.cpp') diff --git a/OPJViewer/source/imagjp2.cpp b/OPJViewer/source/imagjp2.cpp index 7328e807..3c61905b 100644 --- a/OPJViewer/source/imagjp2.cpp +++ b/OPJViewer/source/imagjp2.cpp @@ -194,7 +194,7 @@ bool wxJP2Handler::LoadFile(wxImage *image, wxInputStream& stream, bool verbose, cio = opj_cio_open((opj_common_ptr)dinfo, src, file_length); /* decode the stream and fill the image structure */ - opjimage = opj_decode(dinfo, cio, &cstr_info); + opjimage = opj_decode_with_info(dinfo, cio, &cstr_info); if (!opjimage) { #ifndef __WXGTK__ wxMutexGuiEnter(); -- cgit v1.2.3