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>