From 6fa4a8c3c33a51875db338166e7110f7aef274dc Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 2 Jul 2020 12:45:44 +1000 Subject: [PATCH] ccconverter: fix cdp timecode parsing The first reserved bits are in the most significant bit. i.e. 0xc0 vs 0x0c Part-of: --- ext/closedcaption/gstccconverter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/closedcaption/gstccconverter.c b/ext/closedcaption/gstccconverter.c index 56591c0a97..6971c2e62e 100644 --- a/ext/closedcaption/gstccconverter.c +++ b/ext/closedcaption/gstccconverter.c @@ -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);