X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=mj2%2Fmj2_to_frames.c;h=6eae57f098c55c4851c077de2148ca6753abd5d3;hb=09231c317dc91580ce287c4ab0a1dd1bf8aa09dd;hp=bf4dfe6b10cf2f5b97bb3fef23a0b6be59a06cb5;hpb=1e705438e469890cabc3c3d1fa0b91ed45b454ff;p=openjpeg.git diff --git a/mj2/mj2_to_frames.c b/mj2/mj2_to_frames.c index bf4dfe6b..6eae57f0 100644 --- a/mj2/mj2_to_frames.c +++ b/mj2/mj2_to_frames.c @@ -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))