From: Grigori Goronzy Date: Mon, 7 Jan 2013 19:16:25 +0000 (+0100) Subject: Parse angle in styles as double number X-Git-Tag: 0.10.2~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5903771ec9e6a1c6840a3f48fde3fe2bde932326;p=libass Parse angle in styles as double number Similar to VSFilter. Thanks to Iroha for reporting this issue. Note: this breaks the ABI! --- diff --git a/libass/ass.c b/libass/ass.c index fdeb93c..defc515 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -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) diff --git a/libass/ass_types.h b/libass/ass_types.h index 20fd825..3be1029 100644 --- a/libass/ass_types.h +++ b/libass/ass_types.h @@ -50,7 +50,7 @@ typedef struct ass_style { double ScaleX; double ScaleY; double Spacing; - int Angle; + double Angle; int BorderStyle; double Outline; double Shadow;