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 mengker33 committed Aug 31, 2023
1 parent 9468739 commit 3ccb1d2
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 3ccb1d2

Please sign in to comment.