mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
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>
This commit is contained in:
parent
5bf85229e5
commit
bbd3d6f4f6
1 changed files with 5 additions and 1 deletions
|
@ -6217,7 +6217,7 @@ extract_cc_from_data (QtDemuxStream * stream, const guint8 * data, gsize size,
|
||||||
else
|
else
|
||||||
GST_WARNING_OBJECT (stream->pad,
|
GST_WARNING_OBJECT (stream->pad,
|
||||||
"Got multiple [cdat] atoms in a c608 sample. This is unsupported for now. Please file a bug");
|
"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)
|
if (cdt2 == NULL)
|
||||||
cdt2 =
|
cdt2 =
|
||||||
convert_to_s334_1a (data + atom_length + 8,
|
convert_to_s334_1a (data + atom_length + 8,
|
||||||
|
@ -6225,6 +6225,10 @@ extract_cc_from_data (QtDemuxStream * stream, const guint8 * data, gsize size,
|
||||||
else
|
else
|
||||||
GST_WARNING_OBJECT (stream->pad,
|
GST_WARNING_OBJECT (stream->pad,
|
||||||
"Got multiple [cdt2] atoms in a c608 sample. This is unsupported for now. Please file a bug");
|
"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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue