openjpegenc: use the corrent enumeration

Fixes the following error when building in osx.

error: implicit conversion from enumeration type
'GstJPEG2000Colorspace' to different enumeration type
'GstJPEG2000Sampling'
This commit is contained in:
Josep Torra 2016-08-08 13:10:12 +02:00
parent 3db0fa37b7
commit ee5aa3d8b5

View file

@ -647,7 +647,7 @@ gst_openjpeg_enc_set_format (GstVideoEncoder * encoder,
sampling = GST_JPEG2000_SAMPLING_YBRA4444_EXT;
break;
case GST_VIDEO_FORMAT_xRGB:
sampling = GST_JPEG2000_COLORSPACE_RGB;
sampling = GST_JPEG2000_SAMPLING_RGB;
break;
case GST_VIDEO_FORMAT_Y444_10LE:
case GST_VIDEO_FORMAT_Y444_10BE: