summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Boxer <aaron.boxer@collabora.com>2019-03-26 09:43:46 -0400
committerSebastian Dröge <slomo@coaxion.net>2019-04-09 07:52:56 +0000
commitc41617b9a2392f3b82aa1cae310ffa0cd12c8e27 (patch)
treecd0c7924ec00ca4c6ac2daa4a14ea712b5803405
parenta94f4064cb06247b9d59f4edf5b1b6ae6c80ee58 (diff)
downloadgstreamer-plugins-bad-c41617b9a2392f3b82aa1cae310ffa0cd12c8e27.tar.gz
cea708decoder: use correct mask for font style
First three bits are used for font style, so mask should be 0111 rather than 011 (in binary)
-rw-r--r--ext/closedcaption/gstcea708decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/closedcaption/gstcea708decoder.c b/ext/closedcaption/gstcea708decoder.c
index 774a48f2c..bc2eb6d78 100644
--- a/ext/closedcaption/gstcea708decoder.c
+++ b/ext/closedcaption/gstcea708decoder.c
@@ -1402,9 +1402,9 @@ gst_cea708dec_set_pen_attributes (Cea708Dec * decoder,
tt3 tt2 tt1 tt0 o1 o0 s1 s0
i u et2 et1 et0 fs2 fs1 fs0 */
window->pen_attributes.pen_size = dtvcc_buffer[index] & 0x3;
- window->pen_attributes.font_style = dtvcc_buffer[index + 1] & 0x3;
window->pen_attributes.text_tag = (dtvcc_buffer[index] & 0xF0) >> 4;
window->pen_attributes.offset = (dtvcc_buffer[index] & 0xC0) >> 2;
+ window->pen_attributes.font_style = dtvcc_buffer[index + 1] & 0x7;
window->pen_attributes.italics =
((dtvcc_buffer[index + 1] & 0x80) >> 7) ? TRUE : FALSE;
window->pen_attributes.underline =