Updated the MJ2 codec to be compatible with the recent changes in the OpenJPEG library.
[openjpeg.git] / mj2 / mj2_to_frames.c
index bf4dfe6b10cf2f5b97bb3fef23a0b6be59a06cb5..6eae57f098c55c4851c077de2148ca6753abd5d3 100644 (file)
@@ -160,7 +160,7 @@ int main(int argc, char *argv[]) {
                /* open a byte stream */
                cio = opj_cio_open((opj_common_ptr)dinfo, frame_codestream, sample->sample_size-8);
                
-               img = opj_decode(dinfo, cio); // Decode J2K to image
+               img = opj_decode(dinfo, cio, NULL); // Decode J2K to image. We will not use the cstr_info afterwards -> set to NULL
                                
     if (((img->numcomps == 3) && (img->comps[0].dx == img->comps[1].dx / 2) 
       && (img->comps[0].dx == img->comps[2].dx / 2 ) && (img->comps[0].dx == 1))