diff options
author | Clément Bœsch <u@pkh.me> | 2016-01-10 16:01:14 +0300 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2016-01-10 16:07:45 +0300 |
commit | a43deea8614a901aae85d175b6580183aede20f9 (patch) | |
tree | 4ed0248f71c8f9b655e0d1f6a11f6f9076d534d1 /libavcodec/ccaption_dec.c | |
parent | e273dade78943e22b71d0ddb67cd0d737fc26edf (diff) |
lavc/ccaption_dec: fix ASS tags
Diffstat (limited to 'libavcodec/ccaption_dec.c')
-rw-r--r-- | libavcodec/ccaption_dec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c index fc6431b51a..e3cdcc1669 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; } } |