From 3fb288357d9e728e1af9376b87db55c1665b98ea Mon Sep 17 00:00:00 2001 From: Brooss Date: Tue, 3 Mar 2015 12:27:28 +1100 Subject: [PATCH] change parse_EPG_packet to void --- src/lib_ccx/lib_ccx.h | 2 +- src/lib_ccx/ts_tables_epg.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib_ccx/lib_ccx.h b/src/lib_ccx/lib_ccx.h index 0ae7979c..99db10f5 100644 --- a/src/lib_ccx/lib_ccx.h +++ b/src/lib_ccx/lib_ccx.h @@ -363,7 +363,7 @@ LLONG ts_getmoredata(struct lib_ccx_ctx *ctx); int write_section(struct lib_ccx_ctx *ctx, struct ts_payload *payload, unsigned char*buf, int size, int pos); int parse_PMT (struct lib_ccx_ctx *ctx, unsigned char *buf, int len, int pos); int parse_PAT (struct lib_ccx_ctx *ctx); -int parse_EPG_packet (struct lib_ccx_ctx *ctx); +void parse_EPG_packet (struct lib_ccx_ctx *ctx); void EPG_free(); // myth.c diff --git a/src/lib_ccx/ts_tables_epg.c b/src/lib_ccx/ts_tables_epg.c index 03e0d5ae..8564ce24 100644 --- a/src/lib_ccx/ts_tables_epg.c +++ b/src/lib_ccx/ts_tables_epg.c @@ -39,7 +39,7 @@ void EPG_DVB_calc_start_time(struct EPG_event *event, uint64_t time) { y = y + k + 1900; m = m - 1 - k*12; - sprintf(event->start_time_string, "%02d%02d%02d%06x +0000",(int)y,(int)m,(int)d,(int)(time&0xffffff)); + sprintf(event->start_time_string, "%02d%02d%02d%06x +0000",y,m,d,time&0xffffff); } } @@ -754,7 +754,7 @@ void EPG_parse_table(struct lib_ccx_ctx *ctx, uint8_t *b, uint32_t size) { } // recounsructs DVB EIT and ATSC tables -int parse_EPG_packet(struct lib_ccx_ctx *ctx) { +void parse_EPG_packet(struct lib_ccx_ctx *ctx) { unsigned char *payload_start = tspacket + 4; unsigned payload_length = 188 - 4; unsigned transport_error_indicator = (tspacket[1]&0x80)>>7; @@ -774,7 +774,7 @@ int parse_EPG_packet(struct lib_ccx_ctx *ctx) { } if((pid!=0x12 && pid!=0x1ffb && pid<0x1000) || pid==0x1fff) - return 0; + return; if(pid!=0x12) buffer_map = pid-0x1000;