subassconvert: handle "\r\n" line ends
commit3e0a2705595cbf991e0428984052488ad94c6d21
authorClément Bœsch <ubitux@gmail.com>
Thu, 1 Sep 2011 22:45:38 +0000 (2 00:45 +0200)
committerUoti Urpala <uau@mplayer2.org>
Fri, 2 Sep 2011 09:22:15 +0000 (2 12:22 +0300)
treebad9cee46593f74c9e09f46200b0ca7eed1e56df
parent5a13d47b972ec9be4d324d4ad84c20a1cf046ade
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.
sub/subassconvert.c