[vlc-commits] libass: fix compilation with older versions of libass

Jean-Baptiste Kempf git at videolan.org
Thu Dec 14 00:43:26 CET 2017


vlc/vlc-3.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 13 09:44:56 2017 +0100| [33a367b62427f8cf95afb5811b0db54ffdb6a2a6] | committer: Jean-Baptiste Kempf

libass: fix compilation with older versions of libass

(cherry picked from commit 168f6f4fde2edeb21ecfc9e4faa0345b42d2b028)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=33a367b62427f8cf95afb5811b0db54ffdb6a2a6
---

 modules/codec/libass.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index 4d17cf8248..f743fbb616 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -42,6 +42,10 @@
 
 #include <ass/ass.h>
 
+#if LIBASS_VERSION < 0x01300000
+# define ASS_FONTPROVIDER_AUTODETECT 1
+#endif
+
 #if defined(_WIN32)
 #   include <vlc_charset.h>
 #endif



More information about the vlc-commits mailing list