ccconverter: fix cdp timecode parsing

The first reserved bits are in the most significant bit.

i.e. 0xc0 vs 0x0c

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1400>
This commit is contained in:
Matthew Waters 2020-07-02 12:45:44 +10:00 committed by GStreamer Merge Bot
parent f8bf84307f
commit 6fa4a8c3c3

View file

@ -1117,7 +1117,7 @@ convert_cea708_cdp_cea708_cc_data_internal (GstCCConverter * self,
return 0;
u8 = gst_byte_reader_get_uint8_unchecked (&br);
if ((u8 & 0xc) != 0xc)
if ((u8 & 0xc0) != 0xc0)
return 0;
hours = ((u8 >> 4) & 0x3) * 10 + (u8 & 0xf);