summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Khamidullin <ruslank@borisfx.com>2021-08-22 23:16:26 +0000
committerTim-Philipp Müller <tim@centricular.com>2021-08-24 16:06:04 +0100
commit1474141754319b7c6dfb24f792481ccc1e43a222 (patch)
tree09146da7a4ae7c4378193c484ef770d6b468403a
parente854146e65497c42a986d1f8b125e7e404dc6e8e (diff)
downloadgstreamer-plugins-good-1474141754319b7c6dfb24f792481ccc1e43a222.tar.gz
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/1062>
-rw-r--r--gst/isomp4/gstqtmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c
index cf48e65a3..43b5b40c6 100644
--- a/gst/isomp4/gstqtmux.c
+++ b/gst/isomp4/gstqtmux.c
@@ -6215,7 +6215,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) {