summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2024-09-26 09:15:34 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-09-29 06:18:56 +0000
commitbbd3d6f4f671432920cec2a3e4ea424bb3cee1b1 (patch)
treebf7b867394a8d4ad3a2f104a393d616d52648866
parent5bf85229e5745a474101ba64b1b2fcbadcc4d608 (diff)
qtdemux: Check fourcc of a second CEA608 atom instead of assuming it's cdt2
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7575>
-rw-r--r--subprojects/gst-plugins-good/gst/isomp4/qtdemux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c
index 5e5c217580..84f56974f1 100644
--- a/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c
+++ b/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c
@@ -6217,7 +6217,7 @@ extract_cc_from_data (QtDemuxStream * stream, const guint8 * data, gsize size,
else
GST_WARNING_OBJECT (stream->pad,
"Got multiple [cdat] atoms in a c608 sample. This is unsupported for now. Please file a bug");
- } else {
+ } else if (fourcc == FOURCC_cdt2) {
if (cdt2 == NULL)
cdt2 =
convert_to_s334_1a (data + atom_length + 8,
@@ -6225,6 +6225,10 @@ extract_cc_from_data (QtDemuxStream * stream, const guint8 * data, gsize size,
else
GST_WARNING_OBJECT (stream->pad,
"Got multiple [cdt2] atoms in a c608 sample. This is unsupported for now. Please file a bug");
+ } else {
+ GST_WARNING_OBJECT (stream->pad,
+ "Unknown second data atom (%" GST_FOURCC_FORMAT ") for CEA608",
+ GST_FOURCC_ARGS (fourcc));
}
}
}