diff options
Diffstat (limited to 'libass/ass_library.c')
-rw-r--r-- | libass/ass_library.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libass/ass_library.c b/libass/ass_library.c index 745798e..42cabbd 100644 --- a/libass/ass_library.c +++ b/libass/ass_library.c @@ -24,6 +24,9 @@ #include <stdlib.h> #include <string.h> #include <stdarg.h> +#ifdef CONFIG_UNIBREAK +#include <linebreak.h> +#endif #include "ass.h" #include "ass_library.h" @@ -44,6 +47,10 @@ ASS_Library *ass_library_init(void) ASS_Library* lib = calloc(1, sizeof(*lib)); if (lib) lib->msg_callback = ass_msg_handler; + #ifdef CONFIG_UNIBREAK + // libunibreak works without, but its docs suggest this improves performance + init_linebreak(); + #endif return lib; } |