From f441c72e5ac1196993ce9d166a25f829c8979b80 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 18 Jan 2021 16:06:27 +1100 Subject: [PATCH] isomp4: also allow muxing different h264/5 profiles/levels/etc All of that is advertised through the codec_data itself so can change just fine within isomp4. Part-of: --- gst/isomp4/gstqtmux.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index 6d54fcfc94..999621aa8b 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -5731,6 +5731,21 @@ check_field (GQuark field_id, const GValue * value, gpointer user_data) return TRUE; } else if (g_strcmp0 (g_quark_to_string (field_id), "profile") == 0) { return TRUE; + } else if (g_strcmp0 (g_quark_to_string (field_id), "chroma-format") == 0) { + return TRUE; + } else if (g_strcmp0 (g_quark_to_string (field_id), "bit-depth-luma") == 0) { + return TRUE; + } else if (g_strcmp0 (g_quark_to_string (field_id), + "bit-depth-chroma") == 0) { + return TRUE; + } else if (g_strcmp0 (g_quark_to_string (field_id), "colorimetry") == 0) { + return TRUE; + } else if (g_strcmp0 (g_quark_to_string (field_id), "width") == 0) { + /* TODO: this may require a separate track but gst, vlc, ffmpeg and + * browsers work with this so... */ + return TRUE; + } else if (g_strcmp0 (g_quark_to_string (field_id), "height") == 0) { + return TRUE; } }