diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-27 01:22:11 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-27 01:22:11 +0000 |
commit | cfa148bdb8d3f4dc3924cfd14cc8b486322d9c8e (patch) | |
tree | b43245a3bd498e88d3ff8010e51aaa775a5e6e12 /subreader.c | |
parent | c7a0eb574a9df8426d49a5c49a04935b3ae6844b (diff) | |
download | mpv-cfa148bdb8d3f4dc3924cfd14cc8b486322d9c8e.tar.bz2 mpv-cfa148bdb8d3f4dc3924cfd14cc8b486322d9c8e.tar.xz |
vplayer sub fix by Arkadiusz Podgorski <wodzu@softomat.com.pl>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5364 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subreader.c b/subreader.c index cb1cf4585b..082218a20f 100644 --- a/subreader.c +++ b/subreader.c @@ -265,6 +265,7 @@ subtitle *sub_read_line_vplayer(FILE *fd,subtitle *current) { if (!(current->start = a1*360000+a2*6000+a3*100)) continue; + /* removed by wodzu p=line; // finds the body of the subtitle for (i=0; i<3; i++){ @@ -276,6 +277,11 @@ subtitle *sub_read_line_vplayer(FILE *fd,subtitle *current) { printf("SUB: Skipping incorrect subtitle line!\n"); continue; } + */ + // by wodzu: hey! this time we know what length it has! what is + // that magic for? it can't deal with space instead of third + // colon! look, what simple it can be: + p = &line[ plen ]; i=0; if (*p!='|') { @@ -489,6 +495,8 @@ int sub_autodetect (FILE *fd) { {sub_uses_time=1; return SUB_SAMI;} if (sscanf (line, "%d:%d:%d:", &i, &i, &i )==3) {sub_uses_time=1;return SUB_VPLAYER;} + if (sscanf (line, "%d:%d:%d ", &i, &i, &i )==3) + {sub_uses_time=1;return SUB_VPLAYER;} //TODO: just checking if first line of sub starts with "<" is WAY // too weak test for RT // Please someone who knows the format of RT... FIX IT!!! |