From 3e1aa456b9abba9c422eab05a45ace9d9711e56b Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 14 May 2012 15:19:40 +0000 Subject: [PATCH] [trunk] Pointer is opj_jp2_v2_t, not opj_jp2_t --- libopenjpeg/openjpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopenjpeg/openjpeg.c b/libopenjpeg/openjpeg.c index c03f1478..48ac2e96 100644 --- a/libopenjpeg/openjpeg.c +++ b/libopenjpeg/openjpeg.c @@ -826,7 +826,7 @@ void OPJ_CALLCONV opj_setup_encoder(opj_cinfo_t *cinfo, opj_cparameters_t *param j2k_setup_encoder((opj_j2k_t*)cinfo->j2k_handle, parameters, image); break; case CODEC_JP2: - jp2_setup_encoder((opj_jp2_t*)cinfo->jp2_handle, parameters, image, NULL); + jp2_setup_encoder((opj_jp2_v2_t*)cinfo->jp2_handle, parameters, image, NULL); break; case CODEC_JPT: case CODEC_UNKNOWN: -- 2.40.0