mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 20:01:42 +00:00
change parse_EPG_packet to void
This commit is contained in:
parent
966d88fc10
commit
3fb288357d
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user