-
Notifications
You must be signed in to change notification settings - Fork 0
/
subtitleripper.patch
33 lines (33 loc) · 1.25 KB
/
subtitleripper.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
*** spudec.c.orig Mon May 7 10:31:15 2018
--- spudec.c Mon May 7 10:31:32 2018
***************
*** 173,186 ****
for (type = this->packet[off++]; type != 0xff; type = this->packet[off++]) {
//fprintf(stderr,"cmd=%d ",type);
switch(type) {
case 0x00:
case 0x01:
! if( this->end_pts==-1 ) {
this->end_pts = pts100 + date*(100*1024/90000.0);
spudec_handle_rest(this);
! }
/* Start display, no arguments */
//fprintf(stderr,"Start display:%d--%d!\n",pts100,date);
this->is_forced = (type==0);
this->start_pts = pts100 + date*(100*1024/90000.0);
this->end_pts = -1;
--- 173,186 ----
for (type = this->packet[off++]; type != 0xff; type = this->packet[off++]) {
//fprintf(stderr,"cmd=%d ",type);
switch(type) {
case 0x00:
case 0x01:
! //if( this->end_pts==-1 ) {
this->end_pts = pts100 + date*(100*1024/90000.0);
spudec_handle_rest(this);
! //}
/* Start display, no arguments */
//fprintf(stderr,"Start display:%d--%d!\n",pts100,date);
this->is_forced = (type==0);
this->start_pts = pts100 + date*(100*1024/90000.0);
this->end_pts = -1;