From 66aef5ef46122cbb303d9eb42f662a2c9befd2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 23 Oct 2021 14:28:35 +0300 Subject: [PATCH] typefindfunctions: Add various other boxes to the list of known top-level MP4 boxes styp, udta, sidx, ssix, prft, mfra, pdin and meta are in the ISOBMFF spec and emsg in the CMAF spec. Part-of: --- .../gst/typefind/gsttypefindfunctions.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c index d5f466d912..f8b7665da9 100644 --- a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c +++ b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c @@ -3434,13 +3434,22 @@ qt_type_find (GstTypeFind * tf, gpointer unused) break; } - /* box/atom types that are in common with ISO base media file format */ + /* top-level box/atom types that are in common with ISO base media file format */ if (STRNCMP (&data[4], "moov", 4) == 0 || STRNCMP (&data[4], "mdat", 4) == 0 || STRNCMP (&data[4], "ftyp", 4) == 0 || STRNCMP (&data[4], "free", 4) == 0 || STRNCMP (&data[4], "uuid", 4) == 0 || + STRNCMP (&data[4], "udta", 4) == 0 || + STRNCMP (&data[4], "styp", 4) == 0 || + STRNCMP (&data[4], "sidx", 4) == 0 || + STRNCMP (&data[4], "ssix", 4) == 0 || + STRNCMP (&data[4], "prft", 4) == 0 || + STRNCMP (&data[4], "emsg", 4) == 0 || STRNCMP (&data[4], "moof", 4) == 0 || + STRNCMP (&data[4], "mfra", 4) == 0 || + STRNCMP (&data[4], "pdin", 4) == 0 || + STRNCMP (&data[4], "meta", 4) == 0 || STRNCMP (&data[4], "skip", 4) == 0) { if (tip == 0) { tip = GST_TYPE_FIND_LIKELY;