Commit 62a01b89 authored by Sam Hocevar's avatar Sam Hocevar

* Fix a bunch of warnings, mostly due to missing or invalid prototypes.

parent 80b5d69f
......@@ -44,6 +44,8 @@
#include <netinet/udp.h>
#include <arpa/inet.h>
#include "connect.h"
int create_tcp_connection( const char *ipaddress, int port )
{
struct sockaddr_in addr_ctl;
......
......@@ -137,12 +137,12 @@ typedef struct
/*****************************************************************************
* Local prototypes
*****************************************************************************/
void DumpPMT(void* p_data, dvbpsi_pmt_t* p_pmt);
static void DumpPMT(void* p_data, dvbpsi_pmt_t* p_pmt);
/*****************************************************************************
* ReadPacket
*****************************************************************************/
int ReadPacket( int i_fd, uint8_t* p_dst )
static int ReadPacket( int i_fd, uint8_t* p_dst )
{
int i = 187;
int i_rc = 1;
......@@ -164,7 +164,7 @@ int ReadPacket( int i_fd, uint8_t* p_dst )
}
#ifdef HAVE_SYS_SOCKET_H
int ReadPacketFromSocket( int i_socket, uint8_t* p_dst, size_t i_size)
static int ReadPacketFromSocket( int i_socket, uint8_t* p_dst, size_t i_size)
{
int i_rc = -1;
......@@ -172,14 +172,14 @@ int ReadPacketFromSocket( int i_socket, uint8_t* p_dst, size_t i_size)
i_rc = read( i_socket, p_dst, i_size );
if( i_rc < 0 ) printf( "READ INTERRUPTED BY SIGNAL\n" );
if( i_rc == 0 ) printf( "READ RETURNS 0\n" );
return (i_rc <= i_size ) ? 1 : 0;
return (i_rc <= (int)i_size ) ? 1 : 0;
}
#endif
/*****************************************************************************
* DumpPAT
*****************************************************************************/
void DumpPAT(void* p_data, dvbpsi_pat_t* p_pat)
static void DumpPAT(void* p_data, dvbpsi_pat_t* p_pat)
{
dvbpsi_pat_program_t* p_program = p_pat->p_first_program;
ts_stream_t* p_stream = (ts_stream_t*) p_data;
......@@ -211,7 +211,7 @@ void DumpPAT(void* p_data, dvbpsi_pat_t* p_pat)
/*****************************************************************************
* GetTypeName
*****************************************************************************/
char* GetTypeName(uint8_t type)
static char const* GetTypeName(uint8_t type)
{
switch (type)
{
......@@ -256,7 +256,7 @@ char* GetTypeName(uint8_t type)
/*****************************************************************************
* DumpMaxBitrateDescriptor
*****************************************************************************/
void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
static void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
{
printf("Bitrate: %d\n", bitrate_descriptor->i_max_bitrate);
}
......@@ -264,7 +264,7 @@ void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
/*****************************************************************************
* DumpSystemClockDescriptor
*****************************************************************************/
void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
{
printf("External clock: %s, Accuracy: %E\n",
p_clock_descriptor->b_external_clock_ref ? "Yes" : "No",
......@@ -275,7 +275,7 @@ void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
/*****************************************************************************
* DumpStreamIdentifierDescriptor
*****************************************************************************/
void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descriptor)
static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descriptor)
{
printf("Component tag: %d\n",
p_si_descriptor->i_component_tag);
......@@ -284,7 +284,7 @@ void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descript
/*****************************************************************************
* DumpSubtitleDescriptor
*****************************************************************************/
void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
static void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
{
int a;
......@@ -304,7 +304,7 @@ void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
/*****************************************************************************
* DumpDescriptors
*****************************************************************************/
void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
{
int i;
......@@ -338,7 +338,7 @@ void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
/*****************************************************************************
* DumpPMT
*****************************************************************************/
void DumpPMT(void* p_data, dvbpsi_pmt_t* p_pmt)
static void DumpPMT(void* p_data, dvbpsi_pmt_t* p_pmt)
{
dvbpsi_pmt_es_t* p_es = p_pmt->p_first_es;
ts_stream_t* p_stream = (ts_stream_t*) p_data;
......@@ -367,7 +367,7 @@ void DumpPMT(void* p_data, dvbpsi_pmt_t* p_pmt)
/*****************************************************************************
* usage
*****************************************************************************/
void usage( char *name )
static void usage( char *name )
{
#ifdef HAVE_SYS_SOCKET_H
printf( "Usage: %s [--file <filename>|--udp <ipaddress> --port <port> -mtu <mtu>|--help]\n", name );
......
......@@ -53,7 +53,7 @@
/*****************************************************************************
* ReadPacket
*****************************************************************************/
int ReadPacket(int i_fd, uint8_t* p_dst)
static int ReadPacket(int i_fd, uint8_t* p_dst)
{
int i = 187;
int i_rc = 1;
......@@ -79,7 +79,7 @@ int ReadPacket(int i_fd, uint8_t* p_dst)
/*****************************************************************************
* DumpPAT
*****************************************************************************/
void DumpPAT(void* p_zero, dvbpsi_pat_t* p_pat)
static void DumpPAT(void* p_zero, dvbpsi_pat_t* p_pat)
{
dvbpsi_pat_program_t* p_program = p_pat->p_first_program;
printf( "\n");
......
......@@ -62,7 +62,7 @@
/*****************************************************************************
* ReadPacket
*****************************************************************************/
int ReadPacket(int i_fd, uint8_t* p_dst)
static int ReadPacket(int i_fd, uint8_t* p_dst)
{
int i = 187;
int i_rc = 1;
......@@ -87,7 +87,7 @@ int ReadPacket(int i_fd, uint8_t* p_dst)
/*****************************************************************************
* GetTypeName
*****************************************************************************/
char* GetTypeName(uint8_t type)
static char* GetTypeName(uint8_t type)
{
switch (type)
{
......@@ -132,7 +132,7 @@ char* GetTypeName(uint8_t type)
/*****************************************************************************
* DumpMaxBitrateDescriptor
*****************************************************************************/
void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
static void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
{
printf("Bitrate: %d\n", bitrate_descriptor->i_max_bitrate);
}
......@@ -140,7 +140,7 @@ void DumpMaxBitrateDescriptor(dvbpsi_max_bitrate_dr_t* bitrate_descriptor)
/*****************************************************************************
* DumpSystemClockDescriptor
*****************************************************************************/
void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
static void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
{
printf("External clock: %s, Accuracy: %E\n",
p_clock_descriptor->b_external_clock_ref ? "Yes" : "No",
......@@ -151,7 +151,7 @@ void DumpSystemClockDescriptor(dvbpsi_system_clock_dr_t* p_clock_descriptor)
/*****************************************************************************
* DumpStreamIdentifierDescriptor
*****************************************************************************/
void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descriptor)
static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descriptor)
{
printf("Component tag: %d\n",
p_si_descriptor->i_component_tag);
......@@ -160,7 +160,7 @@ void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_descript
/*****************************************************************************
* DumpSubtitleDescriptor
*****************************************************************************/
void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
static void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
{
int a;
......@@ -180,7 +180,7 @@ void DumpSubtitleDescriptor(dvbpsi_subtitling_dr_t* p_subtitle_descriptor)
/*****************************************************************************
* DumpDescriptors
*****************************************************************************/
void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
{
int i;
......@@ -215,7 +215,7 @@ void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
/*****************************************************************************
* DumpPMT
*****************************************************************************/
void DumpPMT(void* p_zero, dvbpsi_pmt_t* p_pmt)
static void DumpPMT(void* p_zero, dvbpsi_pmt_t* p_pmt)
{
dvbpsi_pmt_es_t* p_es = p_pmt->p_first_es;
printf( "\n");
......
......@@ -58,7 +58,7 @@
/*****************************************************************************
* ReadPacket
*****************************************************************************/
int ReadPacket(int i_fd, uint8_t* p_dst)
static int ReadPacket(int i_fd, uint8_t* p_dst)
{
int i = 187;
int i_rc = 1;
......@@ -84,7 +84,7 @@ int ReadPacket(int i_fd, uint8_t* p_dst)
/*****************************************************************************
* DumpDescriptors
*****************************************************************************/
void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
{
while(p_descriptor)
{
......@@ -101,7 +101,7 @@ void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
/*****************************************************************************
* DumpSDT
*****************************************************************************/
void DumpSDT(void* p_zero, dvbpsi_sdt_t* p_sdt)
static void DumpSDT(void* p_zero, dvbpsi_sdt_t* p_sdt)
{
dvbpsi_sdt_service_t* p_service = p_sdt->p_first_service;
printf( "\n");
......@@ -126,7 +126,7 @@ void DumpSDT(void* p_zero, dvbpsi_sdt_t* p_sdt)
/*****************************************************************************
* NewSubtable
*****************************************************************************/
void NewSubtable(void * p_zero, dvbpsi_handle h_dvbpsi,
static void NewSubtable(void * p_zero, dvbpsi_handle h_dvbpsi,
uint8_t i_table_id, uint16_t i_extension)
{
if(i_table_id == 0x42)
......
......@@ -38,7 +38,7 @@
/*****************************************************************************
* main
*****************************************************************************/
int main()
int main(void)
{
uint32_t table[256];
uint32_t i, j, k;
......
......@@ -50,7 +50,7 @@
/*****************************************************************************
* writePSI
*****************************************************************************/
void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
{
p_packet[0] = 0x47;
......
......@@ -52,7 +52,7 @@
/*****************************************************************************
* writePSI
*****************************************************************************/
void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
static void writePSI(uint8_t* p_packet, dvbpsi_psi_section_t* p_section)
{
p_packet[0] = 0x47;
......
......@@ -25,14 +25,14 @@
#include "test_dr.h"
/* video stream (b_mpeg2 = false) */
int main_vstream_1()
static int main_vstream_1(void)
{
BOZO_VARS(vstream);
BOZO_START(video stream (b_mpeg2 = false));
/* check b_multiple_frame_rate */
BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 0);
......@@ -88,12 +88,12 @@ int main_vstream_1()
}
/* video stream (b_mpeg2 = true) */
int main_vstream_2()
static int main_vstream_2(void)
{
BOZO_VARS(vstream);
BOZO_START(video stream (b_mpeg2 = true));
/* check b_multiple_frame_rate */
BOZO_init_boolean(b_multiple_frame_rate, 0);
BOZO_init_integer(i_frame_rate_code, 0);
......@@ -206,12 +206,12 @@ int main_vstream_2()
}
/* audio stream */
int main_astream_()
static int main_astream_(void)
{
BOZO_VARS(astream);
BOZO_START(audio stream);
/* check b_free_format */
BOZO_init_boolean(b_free_format, 0);
BOZO_init_integer(i_id, 0);
......@@ -249,12 +249,12 @@ int main_astream_()
}
/* hierarchy */
int main_hierarchy_()
static int main_hierarchy_(void)
{
BOZO_VARS(hierarchy);
BOZO_START(hierarchy);
/* check i_h_type */
BOZO_init_integer(i_h_type, 0);
BOZO_init_integer(i_h_layer_index, 0);
......@@ -306,12 +306,12 @@ int main_hierarchy_()
}
/* registration */
int main_registration_()
static int main_registration_(void)
{
BOZO_VARS(registration);
BOZO_START(registration);
/* check i_format_identifier */
s_decoded.i_additional_length = 0;
BOZO_init_integer(i_format_identifier, 0);
......@@ -328,12 +328,12 @@ int main_registration_()
}
/* data stream alignment */
int main_ds_alignment_()
static int main_ds_alignment_(void)
{
BOZO_VARS(ds_alignment);
BOZO_START(data stream alignment);
/* check i_alignment_type */
BOZO_init_integer(i_alignment_type, 0);
BOZO_begin_integer(i_alignment_type, 8)
......@@ -349,12 +349,12 @@ int main_ds_alignment_()
}
/* target background grid */
int main_target_bg_grid_()
static int main_target_bg_grid_(void)
{
BOZO_VARS(target_bg_grid);
BOZO_START(target background grid);
/* check i_horizontal_size */
BOZO_init_integer(i_horizontal_size, 0);
BOZO_init_integer(i_vertical_size, 0);
......@@ -392,12 +392,12 @@ int main_target_bg_grid_()
}
/* video window */
int main_vwindow_()
static int main_vwindow_(void)
{
BOZO_VARS(vwindow);
BOZO_START(video window);
/* check i_horizontal_offset */
BOZO_init_integer(i_horizontal_offset, 0);
BOZO_init_integer(i_vertical_offset, 0);
......@@ -435,12 +435,12 @@ int main_vwindow_()
}
/* conditional access */
int main_ca_()
static int main_ca_(void)
{
BOZO_VARS(ca);
BOZO_START(conditional access);
/* check i_ca_system_id */
s_decoded.i_private_length = 0;
BOZO_init_integer(i_ca_system_id, 0);
......@@ -468,12 +468,12 @@ int main_ca_()
}
/* system clock */
int main_system_clock_()
static int main_system_clock_(void)
{
BOZO_VARS(system_clock);
BOZO_START(system clock);
/* check b_external_clock_ref */
BOZO_init_boolean(b_external_clock_ref, 0);
BOZO_init_integer(i_clock_accuracy_integer, 0);
......@@ -511,12 +511,12 @@ int main_system_clock_()
}
/* multiplex buffer utilization */
int main_mx_buff_utilization_()
static int main_mx_buff_utilization_(void)
{
BOZO_VARS(mx_buff_utilization);
BOZO_START(multiplex buffer utilization);
/* check b_mdv_valid */
BOZO_init_boolean(b_mdv_valid, 0);
BOZO_init_integer(i_mx_delay_variation, 0);
......@@ -554,12 +554,12 @@ int main_mx_buff_utilization_()
}
/* copyright */
int main_copyright_()
static int main_copyright_(void)
{
BOZO_VARS(copyright);
BOZO_START(copyright);
/* check i_copyright_identifier */
s_decoded.i_additional_length = 0;
BOZO_init_integer(i_copyright_identifier, 0);
......@@ -576,12 +576,12 @@ int main_copyright_()
}
/* maximum bitrate */
int main_max_bitrate_()
static int main_max_bitrate_(void)
{
BOZO_VARS(max_bitrate);
BOZO_START(maximum bitrate);
/* check i_max_bitrate */
BOZO_init_integer(i_max_bitrate, 0);
BOZO_begin_integer(i_max_bitrate, 22)
......@@ -597,12 +597,12 @@ int main_max_bitrate_()
}
/* private data indicator */
int main_private_data_()
static int main_private_data_(void)
{
BOZO_VARS(private_data);
BOZO_START(private data indicator);
/* check i_private_data */
BOZO_init_integer(i_private_data, 0);
BOZO_begin_integer(i_private_data, 32)
......@@ -618,12 +618,12 @@ int main_private_data_()
}
/* service */
int main_service_()
static int main_service_(void)
{
BOZO_VARS(service);
BOZO_START(service);
/* check i_service_type */
s_decoded.i_service_provider_name_length = 0;
s_decoded.i_service_name_length = 0;
......@@ -642,10 +642,10 @@ int main_service_()
/* main function */
int main()
int main(void)
{
int i_err = 0;
i_err |= main_vstream_1();
i_err |= main_vstream_2();
i_err |= main_astream_();
......
......@@ -130,7 +130,6 @@ dvbpsi_descriptor_t * dvbpsi_GenExtendedEventDr(dvbpsi_extended_event_dr_t * p_d
if(p_descriptor)
{
uint8_t *p = &p_descriptor->p_data[0];
int i;
/* Encode data */
p[0] = (p_decoded->i_descriptor_number << 4 ) |
......
......@@ -334,7 +334,7 @@ void dvbpsi_GatherCATSections(dvbpsi_decoder_t* p_decoder,
/* Chain the sections */
if(p_cat_decoder->i_last_section_number)
{
for(i = 0; i <= p_cat_decoder->i_last_section_number - 1; i++)
for(i = 0; (int)i <= p_cat_decoder->i_last_section_number - 1; i++)
p_cat_decoder->ap_sections[i]->p_next =
p_cat_decoder->ap_sections[i + 1];
}
......
......@@ -530,13 +530,13 @@ void dvbpsi_DecodeEITSections(dvbpsi_eit_t* p_eit,
| ((uint32_t)(p_byte[8]) << 8) | p_byte[9];
uint8_t i_running_status = (uint8_t)(p_byte[10]) >> 5;
int b_free_ca = (int)(p_byte[10] & 0x10) >> 4;
uint16_t i_length = ((uint16_t)(p_byte[10] & 0xf) << 8) | p_byte[11];
uint16_t i_ev_length = ((uint16_t)(p_byte[10] & 0xf) << 8) | p_byte[11];
dvbpsi_eit_event_t* p_event = dvbpsi_EITAddEvent(p_eit,
i_event_id, i_start_time, i_duration,
i_running_status, b_free_ca);
/* Event descriptors */
p_byte += 12;
p_end = p_byte + i_length;
p_end = p_byte + i_ev_length;
while(p_byte + 2 <= p_end)
{
uint8_t i_tag = p_byte[0];
......
......@@ -462,7 +462,7 @@ void dvbpsi_GatherNITSections(dvbpsi_decoder_t * p_decoder,
/* Chain the sections */
if(p_nit_decoder->i_last_section_number)
{
for(i = 0; i <= p_nit_decoder->i_last_section_number - 1; i++)
for(i = 0; (int)i <= p_nit_decoder->i_last_section_number - 1; i++)
p_nit_decoder->ap_sections[i]->p_next =
p_nit_decoder->ap_sections[i + 1];
}
......@@ -526,11 +526,11 @@ void dvbpsi_DecodeNITSections(dvbpsi_nit_t* p_nit,
{
uint16_t i_ts_id = ((uint16_t)p_byte[0] << 8) | p_byte[1];
uint16_t i_orig_network_id = ((uint16_t)p_byte[2] << 8) | p_byte[3];
uint16_t i_length = ((uint16_t)(p_byte[4] & 0x0f) << 8) | p_byte[5];
uint16_t i_ts_length = ((uint16_t)(p_byte[4] & 0x0f) << 8) | p_byte[5];
dvbpsi_nit_ts_t* p_ts = dvbpsi_NITAddTS(p_nit, i_ts_id, i_orig_network_id);
/* - TS descriptors */
p_byte += 6;
p_end2 = p_byte + i_length;
p_end2 = p_byte + i_ts_length;
if( p_end2 > p_section->p_payload_end )
{
p_end2 = p_section->p_payload_end;
......
......@@ -352,7 +352,7 @@ void dvbpsi_GatherPATSections(dvbpsi_decoder_t* p_decoder,
/* Chain the sections */
if(p_pat_decoder->i_last_section_number)
{
for(i = 0; i <= p_pat_decoder->i_last_section_number - 1; i++)
for(i = 0; (int)i <= p_pat_decoder->i_last_section_number - 1; i++)
p_pat_decoder->ap_sections[i]->p_next =
p_pat_decoder->ap_sections[i + 1];
}
......
......@@ -427,7 +427,7 @@ void dvbpsi_GatherPMTSections(dvbpsi_decoder_t* p_decoder,
/* Chain the sections */
if(p_pmt_decoder->i_last_section_number)
{
for(i = 0; i <= p_pmt_decoder->i_last_section_number - 1; i++)
for(i = 0; (int)i <= p_pmt_decoder->i_last_section_number - 1; i++)
p_pmt_decoder->ap_sections[i]->p_next =
p_pmt_decoder->ap_sections[i + 1];
}
......@@ -482,11 +482,11 @@ void dvbpsi_DecodePMTSections(dvbpsi_pmt_t* p_pmt,
{
uint8_t i_type = p_byte[0];
uint16_t i_pid = ((uint16_t)(p_byte[1] & 0x1f) << 8) | p_byte[2];
uint16_t i_length = ((uint16_t)(p_byte[3] & 0x0f) << 8) | p_byte[4];
uint16_t i_es_length = ((uint16_t)(p_byte[3] & 0x0f) << 8) | p_byte[4];
dvbpsi_pmt_es_t* p_es = dvbpsi_PMTAddES(p_pmt, i_type, i_pid);
/* - ES descriptors */
p_byte += 5;
p_end = p_byte + i_length;
p_end = p_byte + i_es_length;
if( p_end > p_section->p_payload_end )
{
p_end = p_section->p_payload_end;
......
......@@ -428,7 +428,7 @@ void dvbpsi_GatherSDTSections(dvbpsi_decoder_t * p_psi_decoder,
/* Chain the sections */
if(p_sdt_decoder->i_last_section_number)
{
for(i = 0; i <= p_sdt_decoder->i_last_section_number - 1; i++)
for(i = 0; (int)i <= p_sdt_decoder->i_last_section_number - 1; i++)
p_sdt_decoder->ap_sections[i]->p_next =
p_sdt_decoder->ap_sections[i + 1];
}
......@@ -473,14 +473,14 @@ void dvbpsi_DecodeSDTSections(dvbpsi_sdt_t* p_sdt,
int b_eit_present = (int)((p_byte[2]) & 0x1);
uint8_t i_running_status = (uint8_t)(p_byte[3]) >> 5;
int b_free_ca = (int)((p_byte[3] & 0x10) >> 4);
uint16_t i_length = ((uint16_t)(p_byte[3] & 0xf) <<8) | p_byte[4];
uint16_t i_srv_length = ((uint16_t)(p_byte[3] & 0xf) <<8) | p_byte[4];
dvbpsi_sdt_service_t* p_service = dvbpsi_SDTAddService(p_sdt,
i_service_id, b_eit_schedule, b_eit_present,
i_running_status, b_free_ca);
/* Service descriptors */
p_byte += 5;
p_end = p_byte + i_length;
p_end = p_byte + i_srv_length;
if( p_end > p_section->p_payload_end ) break;
while(p_byte + 2 <= p_end)
......
......@@ -52,6 +52,13 @@ void dvbpsi_GatherTOTSections(dvbpsi_decoder_t* p_decoder,
dvbpsi_psi_section_t* p_section);
/*****************************************************************************
* dvbpsi_ValidTOTSection
*****************************************************************************
* Check the CRC_32 if the section has b_syntax_indicator set.
*****************************************************************************/
int dvbpsi_ValidTOTSection(dvbpsi_psi_section_t* p_section);
/*****************************************************************************
* dvbpsi_DecodeTOTSections
*****************************************************************************
......
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