mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-25 12:23:59 +00:00
timing tweaks for dvb to spupng
This commit is contained in:
parent
f60987109b
commit
016674b0eb
@ -31,7 +31,7 @@ int cb_field1, cb_field2, cb_708;
|
||||
int saw_caption_block;
|
||||
|
||||
int pts_set; //0 = No, 1 = received, 2 = min_pts set
|
||||
|
||||
unsigned long long max_dif = 5;
|
||||
unsigned pts_big_change;
|
||||
|
||||
int MPEG_CLOCK_FREQ = 90000; // This "constant" is part of the standard
|
||||
|
@ -418,6 +418,7 @@ extern int startbytes_avail; // Needs to be able to hold -1 result.
|
||||
|
||||
extern unsigned char *pesheaderbuf;
|
||||
extern int pts_set; //0 = No, 1 = received, 2 = min_pts set
|
||||
extern unsigned long long max_dif;
|
||||
|
||||
extern int MPEG_CLOCK_FREQ; // This is part of the standard
|
||||
|
||||
|
@ -603,6 +603,7 @@ void general_loop(void)
|
||||
{
|
||||
int out_size = 0;
|
||||
dvbsub_decode(cxx_dvb_context,NULL,&out_size,buffer + 2,inbuf);
|
||||
set_fts();
|
||||
got = inbuf;
|
||||
}
|
||||
else if (ccx_bufferdatatype == CCX_PES)
|
||||
|
@ -44,7 +44,7 @@ void set_fts(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (dif < -0.2 || dif >=5 )
|
||||
if (dif < -0.2 || dif >=max_dif )
|
||||
{
|
||||
// ATSC specs: More than 3501 ms means missing component
|
||||
mprint ("\nWarning: Reference clock has changed abruptly (%d seconds filepos=%lld), attempting to synchronize\n", (int) dif, past);
|
||||
|
@ -238,6 +238,7 @@ int parse_PMT (int pos)
|
||||
dvbsub_set_write(cxx_dvb_context,&wbout1);
|
||||
ccx_options.ts_cappid = newcappid = elementary_PID;
|
||||
cap_stream_type = newcap_stream_type = ccx_stream_type;
|
||||
max_dif = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user