Commit 8ff6d3c9 authored by Jean-Paul Saman's avatar Jean-Paul Saman

src/tables/{pat,pmt,tot}.c: use boolean

Make use p_current->b_syntax_indicator and p_current->b_private_indicator are used as booleans.
parent 23cec134
......@@ -84,7 +84,6 @@ bool dvbpsi_AttachPAT(dvbpsi_t *p_dvbpsi, dvbpsi_pat_callback pf_callback,
return true;
}
/*****************************************************************************
* dvbpsi_DetachPAT
*****************************************************************************
......@@ -402,8 +401,8 @@ dvbpsi_psi_section_t* dvbpsi_GenPATSections(dvbpsi_t *p_dvbpsi,
i_max_pps = 253;
p_current->i_table_id = 0;
p_current->b_syntax_indicator = 1;
p_current->b_private_indicator = 0;
p_current->b_syntax_indicator = true;
p_current->b_private_indicator = false;
p_current->i_length = 9; /* header + CRC_32 */
p_current->i_extension = p_pat->i_ts_id;
p_current->i_version = p_pat->i_version;
......@@ -424,8 +423,8 @@ dvbpsi_psi_section_t* dvbpsi_GenPATSections(dvbpsi_t *p_dvbpsi,
i_count = 1;
p_current->i_table_id = 0;
p_current->b_syntax_indicator = 1;
p_current->b_private_indicator = 0;
p_current->b_syntax_indicator = true;
p_current->b_private_indicator = false;
p_current->i_length = 9; /* header + CRC_32 */
p_current->i_extension = p_pat->i_ts_id;
p_current->i_version = p_pat->i_version;
......
......@@ -486,8 +486,8 @@ dvbpsi_psi_section_t* dvbpsi_GenPMTSections(dvbpsi_t *p_dvbpsi, dvbpsi_pmt_t* p_
uint16_t i_info_length;
p_current->i_table_id = 0x02;
p_current->b_syntax_indicator = 1;
p_current->b_private_indicator = 0;
p_current->b_syntax_indicator = true;
p_current->b_private_indicator = false;
p_current->i_length = 13; /* header + CRC_32 */
p_current->i_extension = p_pmt->i_program_number;
p_current->i_version = p_pmt->i_version;
......@@ -518,8 +518,8 @@ dvbpsi_psi_section_t* dvbpsi_GenPMTSections(dvbpsi_t *p_dvbpsi, dvbpsi_pmt_t* p_
p_prev->p_next = p_current;
p_current->i_table_id = 0x02;
p_current->b_syntax_indicator = 1;
p_current->b_private_indicator = 0;
p_current->b_syntax_indicator = true;
p_current->b_private_indicator = false;
p_current->i_length = 13; /* header + CRC_32 */
p_current->i_extension = p_pmt->i_program_number;
p_current->i_version = p_pmt->i_version;
......
......@@ -214,7 +214,7 @@ void dvbpsi_GatherTOTSections(dvbpsi_t* p_dvbpsi,
b_append = 0;
}
if (b_append && p_section->b_syntax_indicator != 0)
if (b_append && p_section->b_syntax_indicator != false)
{
/* Invalid section_syntax_indicator */
dvbpsi_error(p_dvbpsi, "TDT/TOT decoder",
......@@ -358,8 +358,8 @@ dvbpsi_psi_section_t* dvbpsi_GenTOTSections(dvbpsi_t *p_dvbpsi, dvbpsi_tot_t* p_
p_result = dvbpsi_NewPSISection((p_descriptor != NULL) ? 4096 : 8);
p_result->i_table_id = (p_descriptor != NULL) ? 0x73 : 0x70;
p_result->b_syntax_indicator = 0;
p_result->b_private_indicator = 0;
p_result->b_syntax_indicator = false;
p_result->b_private_indicator = false;
p_result->i_length = 5;
p_result->p_payload_start = p_result->p_data + 3;
p_result->p_payload_end = p_result->p_data + 8;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment