corrected timing in spupng xml file

This commit is contained in:
Anshul Maheshwari 2014-08-14 20:45:38 +05:30
parent 9c847aa4f1
commit 883dfaae4a
3 changed files with 6 additions and 2 deletions

View File

@ -1535,6 +1535,7 @@ int dvbsub_decode(void *dvb_ctx, const unsigned char *buf, int buf_size, struct
p = buf;
p_end = buf + buf_size;
set_fts();
while (p_end - p >= 6 && *p == 0x0f)
{
p += 1;

View File

@ -614,8 +614,11 @@ int write_cc_bitmap_as_spupng(struct cc_subtitle *sub, struct encoder_ctx *conte
else if ( !(sub->flags & SUB_EOD_MARKER))
write_sputag(sp, sub->start_time, sub->end_time);
if(sub->nb_data == 0 )
if(sub->nb_data == 0 && (sub->flags & SUB_EOD_MARKER))
{
context->prev_start = -1;
return 0;
}
rect = sub->data;
for(i = 0;i < sub->nb_data;i++)
{

View File

@ -286,7 +286,7 @@ int parse_PMT (unsigned char *buf,int len, int pos)
break;
ccx_options.ts_cappid = newcappid = elementary_PID;
cap_stream_type = newcap_stream_type = ccx_stream_type;
max_dif = 10;
max_dif = 30;
}
}
}