Mercurial > mplayer.hg
diff subreader.c @ 9126:7a06258271d6
Add a command line option (-sub-no-text-pp) to disable subtitles
postprocessing, ie. { } removal etc.
patch by Salvador Eduardo Tropea <salvador@inti.gov.ar>
| author | arpi |
|---|---|
| date | Mon, 27 Jan 2003 23:41:56 +0000 |
| parents | 3086611e8213 |
| children | 6af323788366 |
line wrap: on
line diff
--- a/subreader.c Mon Jan 27 22:29:47 2003 +0000 +++ b/subreader.c Mon Jan 27 23:41:56 2003 +0000 @@ -32,6 +32,8 @@ int sub_errs=0; int sub_num=0; // number of subtitle structs int sub_slacktime=2000; // 20 seconds +int sub_no_text_pp=0; // 1 => do not apply text post-processing + // like {\...} elimination in SSA format. /* Use the SUB_* constant defined in the header file */ int sub_format=SUB_INVALID; @@ -1132,7 +1134,7 @@ return NULL; } // Apply any post processing that needs recoding first - if ((sub!=ERR) && srp->post) srp->post(sub); + if ((sub!=ERR) && !sub_no_text_pp && srp->post) srp->post(sub); #ifdef USE_SORTSUB if(!sub_num || (first[sub_num - 1].start <= sub->start)){ first[sub_num].start = sub->start;
