]> granicus.if.org Git - libass/commitdiff
Parse angle in styles as double number
authorGrigori Goronzy <greg@blackbox>
Mon, 7 Jan 2013 19:16:25 +0000 (20:16 +0100)
committerGrigori Goronzy <greg@blackbox>
Mon, 7 Jan 2013 19:18:57 +0000 (20:18 +0100)
Similar to VSFilter. Thanks to Iroha for reporting this issue.

Note: this breaks the ABI!

libass/ass.c
libass/ass_types.h

index fdeb93ca881c1703719c464092b11820fb8621ae..defc515e681c7ec85c6a7e6f3470575ee0cb46ff 100644 (file)
@@ -514,7 +514,7 @@ static int process_style(ASS_Track *track, char *str)
             INTVAL(Underline)
             INTVAL(StrikeOut)
             FPVAL(Spacing)
-            INTVAL(Angle)
+            FPVAL(Angle)
             INTVAL(BorderStyle)
             INTVAL(Alignment)
             if (track->track_type == TRACK_TYPE_ASS)
index 20fd825ef1e9605d0855397bcc04a8b536f074f1..3be1029c3a6a6cf965f57064ccc3af2581445ba6 100644 (file)
@@ -50,7 +50,7 @@ typedef struct ass_style {
     double ScaleX;
     double ScaleY;
     double Spacing;
-    int Angle;
+    double Angle;
     int BorderStyle;
     double Outline;
     double Shadow;