[MPlayer-cvslog] r22287 - trunk/libass/ass_render.c
eugeni
subversion at mplayerhq.hu
Tue Feb 20 17:37:19 CET 2007
Author: eugeni
Date: Tue Feb 20 17:37:18 2007
New Revision: 22287
Modified:
trunk/libass/ass_render.c
Log:
\fn without an argument resets font family to the value from style.
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Tue Feb 20 17:37:18 2007
@@ -791,9 +791,12 @@
char* start = p;
char* family;
skip_all('\\');
- family = malloc(p - start + 1);
- strncpy(family, start, p - start);
- family[p - start] = '\0';
+ if (p > start) {
+ family = malloc(p - start + 1);
+ strncpy(family, start, p - start);
+ family[p - start] = '\0';
+ } else
+ family = strdup(render_context.style->FontName);
if (render_context.family)
free(render_context.family);
render_context.family = family;
More information about the MPlayer-cvslog
mailing list