]> granicus.if.org Git - handbrake/commit
decsrtsub: rework character substitution logic.
authorRodeo <tdskywalker@gmail.com>
Wed, 8 May 2013 21:51:00 +0000 (21:51 +0000)
committerRodeo <tdskywalker@gmail.com>
Wed, 8 May 2013 21:51:00 +0000 (21:51 +0000)
commitd03eec7a91a06f76775bb863e892adbc87faea8d
tree59d53147038ba0dd368a524ccfe2f49c3a129646
parent2a9ec102706226a3b84f6e01ac0152a432d77332
decsrtsub: rework character substitution logic.

Don't pointlessly convert a line break to a space if it's the last character.

Also, only skip a CR character if it's followed by an LF character. Otherwise, replace it with an LF character or a space, depending on the line number.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5446 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/decsrtsub.c