]> granicus.if.org Git - libass/commitdiff
Add \t(\b) support.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 19 Feb 2007 19:01:45 +0000 (19:01 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 19 Feb 2007 19:01:45 +0000 (19:01 +0000)
Contradicts the specification, but supported by all other renderers.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22280 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 67e8d71ea599725bb99e0aa28cca8e80387abadf..078316bc0c18f72213967564537f81b45fccb76e 100644 (file)
@@ -979,9 +979,10 @@ static char* parse_tag(char* p, double pwr) {
                        render_context.be = 0;
        } else if (mystrcmp(&p, "b")) {
                int b;
-               if (mystrtoi(&p, 10, &b))
-                       render_context.bold = b;
-               else
+               if (mystrtoi(&p, 10, &b)) {
+                       if (pwr >= 1.)
+                               render_context.bold = b;
+               } else
                        render_context.bold = - render_context.style->Bold;
                update_font();
        } else if (mystrcmp(&p, "i")) {