diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-05 21:33:13 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-05 21:33:13 +0000 |
commit | 8c740ea4f8c04d27fc3428dbe366bc60cdd2da35 (patch) | |
tree | 91186bb335185eb9c7ccfed62e788ab682b32d9e /subreader.c | |
parent | 41da84f6951df215c8899a56d946aaa3ddf8a94e (diff) | |
download | mpv-8c740ea4f8c04d27fc3428dbe366bc60cdd2da35.tar.bz2 mpv-8c740ea4f8c04d27fc3428dbe366bc60cdd2da35.tar.xz |
accept \N too, patch by Reinder <r.cuperus@student.utwente.nl>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5991 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c index ee78fa8fc8..164b43e231 100644 --- a/subreader.c +++ b/subreader.c @@ -362,7 +362,7 @@ subtitle *sub_read_line_ssa(FILE *fd,subtitle *current) { current->start = 360000*hour1 + 6000*min1 + 100*sec1 + hunsec1; current->end = 360000*hour2 + 6000*min2 + 100*sec2 + hunsec2; - while ((tmp=strstr(line2, "\\n")) != NULL) { + while (((tmp=strstr(line2, "\\n")) != NULL) || ((tmp=strstr(line2, "\\N")) != NULL) ){ current->text[num]=(char *)malloc(tmp-line2+1); strncpy (current->text[num], line2, tmp-line2); current->text[num][tmp-line2]='\0'; |