[vlc-devel] commit: Contribs: Fix libass \h char handling. (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Aug 5 00:21:37 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at altair.videolan.org> | Tue Aug  5 00:22:20 2008 +0200| [4d36c0a317c632d303ddd4e0f0fa9343949f6a5f] | committer: Jean-Baptiste Kempf 

Contribs: Fix libass \h char handling.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d36c0a317c632d303ddd4e0f0fa9343949f6a5f
---

 extras/contrib/src/Makefile                        |    1 +
 extras/contrib/src/Patches/libass-h-char-fix.patch |   13 +++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 601f3bd..11f7611 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -2444,6 +2444,7 @@ libass-$(ASS_VERSION).tar.bz2:
 
 libass: libass-$(ASS_VERSION).tar.bz2
 	$(EXTRACT_BZ2)
+	cd $@; patch -p0 < ../Patches/libass-h-char-fix.patch
 ifneq ($(HOST),$(BUILD))
 	patch -p0 < Patches/libass-cross.patch
 	cd $@; autoconf
diff --git a/extras/contrib/src/Patches/libass-h-char-fix.patch b/extras/contrib/src/Patches/libass-h-char-fix.patch
new file mode 100644
index 0000000..8c89406
--- /dev/null
+++ b/extras/contrib/src/Patches/libass-h-char-fix.patch
@@ -0,0 +1,13 @@
+Index: libass/ass_render.c
+===================================================================
+--- libass/ass_render.c	(revision 15)
++++ libass/ass_render.c	(working copy)
+@@ -1071,7 +1071,7 @@
+ 			p += 2;
+ 			*str = p;
+ 			return '\n';
+-		} else if (*(p+1) == 'n') {
++		} else if ((*(p+1) == 'n') || (*(p+1) == 'h')) {
+ 			p += 2;
+ 			*str = p;
+ 			return ' ';




More information about the vlc-devel mailing list