cccombiner: fix s334-1a scheduling
authorMathieu Duponchelle <mathieu@centricular.com>
Fri, 7 Jan 2022 23:16:29 +0000 (00:16 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 12 Jan 2022 14:34:22 +0000 (14:34 +0000)
commitd8c8737e714ffb64b1393ad18400bea8f9f7fac7
tree8be2a1e2e4ef02015d27ecaa65a5a53c0d0d572a
parent6861ea8fe1ece4b44a3abd392cc3e2b65d78a767
cccombiner: fix s334-1a scheduling

The previous code was mistakenly trying to compute a cc_type out
of the first byte in the byte triplet, whereas it is to be interpreted
as:

> Bit b7 of the LINE value is the field number (0 for field 2; 1 for field 1).
> Bits b6 and b5 are 0. Bits b4-b0 form a 5-bit unsigned integer which
> represents the offset

The same mistake was made when creating padding packets.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1496>
subprojects/gst-plugins-bad/ext/closedcaption/gstcccombiner.c