ffmpeg | branch: master | Clément Bœsch <u...@pkh.me> | Sun Jan 10 14:01:14 
2016 +0100| [a43deea8614a901aae85d175b6580183aede20f9] | committer: Clément 
Bœsch

lavc/ccaption_dec: fix ASS tags

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a43deea8614a901aae85d175b6580183aede20f9
---

 libavcodec/ccaption_dec.c |   12 ++++++------
 tests/ref/fate/sub-cc     |    4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c
index fc6431b..e3cdcc1 100644
--- a/libavcodec/ccaption_dec.c
+++ b/libavcodec/ccaption_dec.c
@@ -307,24 +307,24 @@ static int capture_screen(CCaptionSubContext *ctx)
                 if (prev_font != font[j]) {
                     switch (prev_font) {
                     case CCFONT_ITALICS:
-                        e_tag = "{/i0}";
+                        e_tag = "{\\i0}";
                         break;
                     case CCFONT_UNDERLINED:
-                        e_tag = "{/u0}";
+                        e_tag = "{\\u0}";
                         break;
                     case CCFONT_UNDERLINED_ITALICS:
-                        e_tag = "{/u0}{/i0}";
+                        e_tag = "{\\u0}{\\i0}";
                         break;
                     }
                     switch (font[j]) {
                     case CCFONT_ITALICS:
-                        s_tag = "{/i1}";
+                        s_tag = "{\\i1}";
                         break;
                     case CCFONT_UNDERLINED:
-                        s_tag = "{/u1}";
+                        s_tag = "{\\u1}";
                         break;
                     case CCFONT_UNDERLINED_ITALICS:
-                        s_tag = "{/u1}{/i1}";
+                        s_tag = "{\\u1}{\\i1}";
                         break;
                     }
                 }
diff --git a/tests/ref/fate/sub-cc b/tests/ref/fate/sub-cc
index 8583e18..e8086a8 100644
--- a/tests/ref/fate/sub-cc
+++ b/tests/ref/fate/sub-cc
@@ -10,5 +10,5 @@ Style: 
Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,0,100,100,0,0,1,1,0,2,10
 
 [Events]
 Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
-Dialogue: 0,0:00:12.36,0:00:40.83,Default,,0,0,0,,({/i1} inaudible radio 
chatter{/i0} )
-Dialogue: 0,0:00:40.83,0:00:59.07,Default,,0,0,0,,({/i1} inaudible radio 
chatter{/i0} )\N>> Safety remains our number one
+Dialogue: 0,0:00:12.36,0:00:40.83,Default,,0,0,0,,({\i1} inaudible radio 
chatter{\i0} )
+Dialogue: 0,0:00:40.83,0:00:59.07,Default,,0,0,0,,({\i1} inaudible radio 
chatter{\i0} )\N>> Safety remains our number one

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to