[MPlayer-cvslog] CVS: main subreader.c,1.144,1.145
Ivan Kalvachev CVS
syncmail at mplayerhq.hu
Sat Oct 8 22:56:40 CEST 2005
CVS change done by Ivan Kalvachev CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv9908
Modified Files:
subreader.c
Log Message:
make -dumpsrtsub output in DOS LF/CR format just like original SubRip does
patch by Adam Tlalka <atlka at pg.gda.pl>
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -r1.144 -r1.145
--- subreader.c 1 Jun 2005 09:01:41 -0000 1.144
+++ subreader.c 8 Oct 2005 20:56:37 -0000 1.145
@@ -2038,7 +2038,7 @@
for(i=0; i < subd->sub_num; i++)
{
onesub=subs+i; //=&subs[i];
- fprintf(fd,"%d\n",i+1);//line number
+ fprintf(fd,"%d\r\n",i+1);//line number
temp=onesub->start;
if (!subd->sub_uses_time)
@@ -2058,12 +2058,12 @@
m=temp/6000; temp%=6000;
s=temp/100; temp%=100;
ms=temp*10;
- fprintf(fd,"%02d:%02d:%02d,%03d\n",h,m,s,ms);
+ fprintf(fd,"%02d:%02d:%02d,%03d\r\n",h,m,s,ms);
for(j=0;j<onesub->lines;j++)
- fprintf(fd,"%s\n",onesub->text[j]);
+ fprintf(fd,"%s\r\n",onesub->text[j]);
- fprintf(fd,"\n");
+ fprintf(fd,"\r\n");
}
fclose(fd);
mp_msg(MSGT_SUBREADER,MSGL_INFO,"SUB: Subtitles dumped in \'dumpsub.srt\'.\n");
More information about the MPlayer-cvslog
mailing list