From 5903771ec9e6a1c6840a3f48fde3fe2bde932326 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Mon, 7 Jan 2013 20:16:25 +0100 Subject: Parse angle in styles as double number Similar to VSFilter. Thanks to Iroha for reporting this issue. Note: this breaks the ABI! --- libass/ass.c | 2 +- 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; -- cgit v1.2.3