cccombiner: fix CDP padding detection

While a cc_data_pkt with cc_valid 0 should be considered padding,
it might be followed up by valid DTVCC packets, and should not
cause the whole CDP packet to get discarded.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2440>
This commit is contained in:
Mathieu Duponchelle 2021-07-27 23:53:06 +02:00 committed by GStreamer Marge Bot
parent 704689ec4a
commit af7138ebc4

View file

@ -450,7 +450,7 @@ schedule_cdp (GstCCCombiner * self, const GstVideoTimeCode * tc,
guint8 cc_type = cc_data[i * 3] & 0x03; guint8 cc_type = cc_data[i * 3] & 0x03;
if (!cc_valid) if (!cc_valid)
break; continue;
if (cc_type == 0x00 || cc_type == 0x01) { if (cc_type == 0x00 || cc_type == 0x01) {
if (cc_data[i * 3 + 1] != 0x80 || cc_data[i * 3 + 2] != 0x80) { if (cc_data[i * 3 + 1] != 0x80 || cc_data[i * 3 + 2] != 0x80) {