Update the README.cmake file : an instruction was missing to run the tests correctly.
[openjpeg.git] / mj2 / extract_j2k_from_mj2.c
index 6ecaf8341659fd1474b9d9db29290c9cd25e9184..ce5e4d15defc6e0d6323b3ddf1db263e6e733681 100644 (file)
@@ -105,7 +105,7 @@ int main(int argc, char *argv[]) {
 
        /* setup the decoder decoding parameters using user parameters */
        movie = (opj_mj2_t*) dinfo->mj2_handle;
-       mj2_setup_decoder(dinfo->mj2_handle, &parameters);
+       mj2_setup_decoder((opj_mj2_t*)dinfo->mj2_handle, &parameters);
 
   if (mj2_read_struct(file, movie)) // Creating the movie structure
     return 1;