diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2021-07-27 23:53:06 +0200 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-28 11:53:12 +0000 |
commit | af7138ebc4d60e796f239710fe1282c4404c93e0 (patch) | |
tree | 40b3658bb3855be57add4c83685498193f349541 /ext | |
parent | 704689ec4aae8f7d4b11fd7c325ce218b7867574 (diff) | |
download | gstreamer-plugins-bad-af7138ebc4d60e796f239710fe1282c4404c93e0.tar.gz |
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>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/closedcaption/gstcccombiner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/closedcaption/gstcccombiner.c b/ext/closedcaption/gstcccombiner.c index aef5e6c36..d0bb23c72 100644 --- a/ext/closedcaption/gstcccombiner.c +++ b/ext/closedcaption/gstcccombiner.c @@ -450,7 +450,7 @@ schedule_cdp (GstCCCombiner * self, const GstVideoTimeCode * tc, guint8 cc_type = cc_data[i * 3] & 0x03; if (!cc_valid) - break; + continue; if (cc_type == 0x00 || cc_type == 0x01) { if (cc_data[i * 3 + 1] != 0x80 || cc_data[i * 3 + 2] != 0x80) { |