Fixed italics and underline bit flags

This commit is contained in:
Evgeny 2017-01-10 22:17:13 +06:00
parent 714700f6b5
commit 407a40e32e

View File

@ -1068,8 +1068,8 @@ void dtvcc_handle_SPA_SetPenAttributes(ccx_dtvcc_service_decoder *decoder, unsig
int text_tag = (data[1] >> 4) & 0xf;
int font_tag = (data[2] ) & 0x7;
int edge_type = (data[2] >> 3) & 0x7;
int underline = (data[2] >> 4) & 0x1;
int italic = (data[2] >> 5) & 0x1;
int underline = (data[2] >> 6) & 0x1;
int italic = (data[2] >> 7) & 0x1;
ccx_common_logging.debug_ftn(CCX_DMT_708, " Pen size: [%d] Offset: [%d] Text tag: [%d] Font tag: [%d]\n",
pen_size, offset, text_tag, font_tag);