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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4715>
This commit is contained in:
Jordan Petridis 2023-05-25 19:30:29 +03:00 committed by GStreamer Marge Bot
parent 5c04d24553
commit 6032f51162

View file

@ -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 =