summaryrefslogtreecommitdiffstats
path: root/sub/sd_ass.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-09-02 00:45:38 +0200
committerUoti Urpala <uau@mplayer2.org>2011-09-02 12:22:15 +0300
commit3e0a2705595cbf991e0428984052488ad94c6d21 (patch)
treebad9cee46593f74c9e09f46200b0ca7eed1e56df /sub/sd_ass.c
parent5a13d47b972ec9be4d324d4ad84c20a1cf046ade (diff)
downloadmpv-3e0a2705595cbf991e0428984052488ad94c6d21.tar.bz2
mpv-3e0a2705595cbf991e0428984052488ad94c6d21.tar.xz
subassconvert: handle "\r\n" line ends
Previously the code converting text subtitles to ASS format converted newline characters, and only those, to ASS "new line" markup. If the subtitles contained "\r\n", the "\r" was thus left in the text. In previous libass versions the "\r" was not visible, but in the current one it produces an empty box. Improve the conversion to remove the "\r" in that case. Also treat a lone "\r" as a newline.
Diffstat (limited to 'sub/sd_ass.c')
0 files changed, 0 insertions, 0 deletions