openjpegenc: enable MCT for RGB video

https://bugzilla.gnome.org/show_bug.cgi?id=766732
This commit is contained in:
Aaron Boxer 2016-05-20 17:28:52 -04:00 committed by Sebastian Dröge
parent 5a47f4a8bc
commit e76705dbde

View file

@ -856,6 +856,9 @@ gst_openjpeg_enc_handle_frame (GstVideoEncoder * encoder,
goto fill_image_error; goto fill_image_error;
gst_video_frame_unmap (&vframe); gst_video_frame_unmap (&vframe);
if (vframe.info.finfo->flags & GST_VIDEO_FORMAT_FLAG_RGB) {
self->params.tcp_mct = 1;
}
opj_setup_encoder (enc, &self->params, image); opj_setup_encoder (enc, &self->params, image);
#ifdef HAVE_OPENJPEG_1 #ifdef HAVE_OPENJPEG_1