diff options
author | Ruslan Khamidullin <ruslank@borisfx.com> | 2021-08-22 23:16:26 +0000 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-08-24 12:35:47 +0000 |
commit | f510d48ecfbc9d8160827c09514223db64e9a448 (patch) | |
tree | 78e7b41924149ac73a01d9571a5b1b21499c1254 | |
parent | 068c2a71ba58a0a68e6e7258025be81537822249 (diff) |
qtmux: for Apple ProRes, allow overriding pixel bit depth for 4:4:4:4 variants
e.g. when exporting an opaque image, yet with alpha channel.
Apple ProRes certification requires that, when a ProRes-writing
application *knows* that the entire frame is opaque, the application
writes only RGB without alpha even when the clip is RGBA. For that,
this tiny change allows the app to override pixel depth when writing ProRes.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1061>
-rw-r--r-- | gst/isomp4/gstqtmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index ebf4fd744..6d54fcfc9 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -6654,7 +6654,7 @@ gst_qt_mux_video_sink_set_caps (GstQTMuxPad * qtpad, GstCaps * caps) mp4v->horizontal_resolution = 72 << 16; mp4v->vertical_resolution = 72 << 16; mp4v->depth = (entry.fourcc == FOURCC_ap4h - || entry.fourcc == FOURCC_ap4x) ? 32 : 24; + || entry.fourcc == FOURCC_ap4x) ? (depth > 0 ? depth : 32) : 24; /* Set compressor name, required by some software */ switch (entry.fourcc) { |