Mercurial > mplayer.hg
changeset 5990:e5b3385775b3
accept \N too, patch by Reinder <r.cuperus@student.utwente.nl>
author | arpi |
---|---|
date | Sun, 05 May 2002 21:33:13 +0000 |
parents | f50142e50a2b |
children | ddfae38afc28 |
files | subreader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/subreader.c Sun May 05 21:07:10 2002 +0000 +++ b/subreader.c Sun May 05 21:33:13 2002 +0000 @@ -362,7 +362,7 @@ 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';