From 6032f51162294c0391ce2b02cce0163ac7b8d9f8 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Thu, 25 May 2023 19:30:29 +0300 Subject: [PATCH] openjpegenc: do not set bpp field on opj_image_cmptparm_t It's deprecated in favor of the .prec field which we already set. https://github.com/uclouvain/openjpeg/pull/1383/ Part-of: --- subprojects/gst-plugins-bad/ext/openjpeg/gstopenjpegenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/openjpeg/gstopenjpegenc.c b/subprojects/gst-plugins-bad/ext/openjpeg/gstopenjpegenc.c index 20e27a92f0..c6deb29b9a 100644 --- a/subprojects/gst-plugins-bad/ext/openjpeg/gstopenjpegenc.c +++ b/subprojects/gst-plugins-bad/ext/openjpeg/gstopenjpegenc.c @@ -939,7 +939,9 @@ gst_openjpeg_enc_fill_image (GstOpenJPEGEnc * self, GstVideoFrame * frame, for (i = 0; i < ncomps; i++) { comps[i].prec = GST_VIDEO_FRAME_COMP_DEPTH (frame, i); +#if (OPJ_VERSION_MAJOR == 2 && OPJ_VERSION_MINOR < 5) comps[i].bpp = GST_VIDEO_FRAME_COMP_DEPTH (frame, i); +#endif comps[i].sgnd = 0; comps[i].w = GST_VIDEO_FRAME_COMP_WIDTH (frame, i); comps[i].dx =