]> granicus.if.org Git - libass/commitdiff
Make \fr* parameter a floating point value.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 1 Sep 2006 20:36:38 +0000 (20:36 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 1 Sep 2006 20:36:38 +0000 (20:36 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19628 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 25d736338f89ed19faea997b6939844cdcdfedf2..277a51d0c9015c4f6ffe92ed80c7eaeb20b415df 100644 (file)
@@ -726,13 +726,13 @@ static char* parse_tag(char* p, double pwr) {
                render_context.detect_collisions = 0;
                render_context.evt_type = EVENT_POSITIONED;
        } else if (mystrcmp(&p, "frx") || mystrcmp(&p, "fry")) {
-               int val;
-               mystrtoi(&p, 10, &val);
+               double val;
+               mystrtod(&p, &val);
                mp_msg(MSGT_GLOBAL, MSGL_V, "frx/fry unimplemented \n");
        } else if (mystrcmp(&p, "frz") || mystrcmp(&p, "fr")) {
                double angle;
-               int val;
-               val = strtol(p, &p, 10);
+               double val;
+               mystrtod(&p, &val);
                mp_msg(MSGT_GLOBAL, MSGL_DBG2, "setting rotation to %.2f\n", val * pwr);
                angle = M_PI * val / 180;
                render_context.rotation = angle * pwr;