diff options
author | Grigori Goronzy <greg@blackbox> | 2013-01-07 20:16:25 +0100 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2013-01-07 20:18:57 +0100 |
commit | 5903771ec9e6a1c6840a3f48fde3fe2bde932326 (patch) | |
tree | b454c918f5af1eacf554edd8277b1620c735e253 | |
parent | 071e23b7f41382fc07d657699574b24827fa240d (diff) | |
download | libass-5903771ec9e6a1c6840a3f48fde3fe2bde932326.tar.bz2 libass-5903771ec9e6a1c6840a3f48fde3fe2bde932326.tar.xz |
Parse angle in styles as double number
Similar to VSFilter. Thanks to Iroha for reporting this issue.
Note: this breaks the ABI!
-rw-r--r-- | libass/ass.c | 2 | ||||
-rw-r--r-- | libass/ass_types.h | 2 |
2 files changed, 2 insertions, 2 deletions
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; |