From 294ba5ca7c356df81d146382fbcbb2be20e1d3e4 Mon Sep 17 00:00:00 2001 From: eyck Date: Wed, 22 Aug 2001 21:38:35 +0000 Subject: [PATCH] Fixup to vplayer subtitle submitted to sourceforge by Igor Wojnicki wojnicki at users.sf.net, at 2001-05-23 (sic!) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1641 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/subreader.c b/subreader.c index 132b1f7184..4b666abc60 100644 --- a/subreader.c +++ b/subreader.c @@ -240,7 +240,13 @@ subtitle *sub_read_line_vplayer(FILE *fd,subtitle *current) { current->end = b1*360000+b2*6000+b3*100; if ((current->end - current->start) > 1000) {current->end = current->start + 1000;} // not too long though. // teraz czas na wkopiowanie stringu - p=line; p+=plen;i=0; + p=line; + // finds the body of the subtitle + for (i=0; i<3; i++){ + p=strchr(p,':')+1; + } + i=0; + if (*p!='|') { // next = p,i=0;