Mercurial > mplayer.hg
changeset 8862:356534b9e7d4
Since version 2.7 the file extension for JACOsub changed from
'.js' to '.jss', to avoid confusion with javascript.
There is also a new format for list_sub_file output; however
this is used only in debugging subtitles code, while disabled in
real life use.
patch by <salvatore.falco@katamail.com>
author | arpi |
---|---|
date | Thu, 09 Jan 2003 19:25:05 +0000 |
parents | d2cb317c7f16 |
children | 46440d3621a8 |
files | subreader.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/subreader.c Thu Jan 09 19:01:24 2003 +0000 +++ b/subreader.c Thu Jan 09 19:25:05 2003 +0000 @@ -574,7 +574,7 @@ current->end = current->start; // will be corrected by next subtitle if (!fgets (line, LINE_LEN, fd)) - return current;; + return current; next = line,i=1; while ((next =sub_readtext (next, &(current->text[i])))) { @@ -1306,8 +1306,8 @@ ".SSA", ".aqt", ".AQT", - ".js", - ".JS" }; + ".jss", + ".JSS" }; if ( fname == NULL ) return NULL; @@ -1356,13 +1356,13 @@ for(j=0;j<sub_num;j++){ subtitle* egysub=&subs[j]; - printf ("%i line%c (%li-%li) ", + printf ("%i line%c (%li-%li)\n", egysub->lines, (1==egysub->lines)?' ':'s', egysub->start, egysub->end); for (i=0; i<egysub->lines; i++) { - printf ("%s%s",egysub->text[i], i==egysub->lines-1?"":" <BREAK> "); + printf ("\t\t%d: %s%s", i,egysub->text[i], i==egysub->lines-1?"":" \n "); } printf ("\n"); } @@ -1510,7 +1510,7 @@ if (!sub_uses_time && sub_fps == 0) sub_fps = fps; - fd=fopen("dumpsub.js","w"); + fd=fopen("dumpsub.jss","w"); if(!fd) { perror("dump_jacosub: fopen");