Missing specification of tcp_mct=1.
authorCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 13:56:14 +0000 (13:56 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 11 Dec 2015 13:56:14 +0000 (13:56 +0000)
src/j2k.cc

index f19b563221e922fb88aa2161aee213626aa46784..13474f51641c2b3851b423f5e3046ae8454cdc74 100644 (file)
@@ -229,6 +229,7 @@ dcp::compress_j2k (shared_ptr<const OpenJPEGImage> xyz, int bandwidth, int frame
        }
        parameters.max_comp_size = parameters.max_cs_size / 1.25;
        parameters.tcp_numlayers = 1;
+       parameters.tcp_mct = 1;
 
        /* Setup the encoder parameters using the current image and user parameters */
        opj_setup_encoder (encoder, &parameters, xyz->opj_image());