Mercurial > mplayer.hg
comparison subreader.c @ 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 | 880008901169 |
children | 89c87be7a248 |
comparison
equal
deleted
inserted
replaced
5989:f50142e50a2b | 5990:e5b3385775b3 |
---|---|
360 | 360 |
361 current->lines=1;num=0; | 361 current->lines=1;num=0; |
362 current->start = 360000*hour1 + 6000*min1 + 100*sec1 + hunsec1; | 362 current->start = 360000*hour1 + 6000*min1 + 100*sec1 + hunsec1; |
363 current->end = 360000*hour2 + 6000*min2 + 100*sec2 + hunsec2; | 363 current->end = 360000*hour2 + 6000*min2 + 100*sec2 + hunsec2; |
364 | 364 |
365 while ((tmp=strstr(line2, "\\n")) != NULL) { | 365 while (((tmp=strstr(line2, "\\n")) != NULL) || ((tmp=strstr(line2, "\\N")) != NULL) ){ |
366 current->text[num]=(char *)malloc(tmp-line2+1); | 366 current->text[num]=(char *)malloc(tmp-line2+1); |
367 strncpy (current->text[num], line2, tmp-line2); | 367 strncpy (current->text[num], line2, tmp-line2); |
368 current->text[num][tmp-line2]='\0'; | 368 current->text[num][tmp-line2]='\0'; |
369 line2=tmp+2; | 369 line2=tmp+2; |
370 num++; | 370 num++; |