Skip to content

Commit

Permalink
openjpegenc: do not set bpp field on opj_image_cmptparm_t
Browse files Browse the repository at this point in the history
It's deprecated in favor of the .prec field which we already set.

uclouvain/openjpeg#1383

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4715>
  • Loading branch information
alatiera authored and GStreamer Marge Bot committed May 26, 2023
1 parent 5c04d24 commit 6032f51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subprojects/gst-plugins-bad/ext/openjpeg/gstopenjpegenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 6032f51

Please sign in to comment.