aboutsummaryrefslogtreecommitdiff
path: root/ports/libass/ConstantValues.patch
blob: d357032d7429de3c2973a8614bf08b788685b9b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
 libass/ass_outline.c | 4 ++--
 libass/ass_render.c  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libass/ass_outline.c b/libass/ass_outline.c
index 1b9afe9..527403e 100644
--- a/libass/ass_outline.c
+++ b/libass/ass_outline.c
@@ -518,7 +518,7 @@ static bool draw_arc(StrokerState *str, ASS_Vector pt,
                      ASS_DVector normal0, ASS_DVector normal1, double c, int dir)
 {
     const int max_subdiv = 15;
-    double mul[max_subdiv + 1];
+    double mul[16];
 
     ASS_DVector center;
     bool small_angle = true;
@@ -554,7 +554,7 @@ static bool draw_arc(StrokerState *str, ASS_Vector pt,
 static bool draw_circle(StrokerState *str, ASS_Vector pt, int dir)
 {
     const int max_subdiv = 15;
-    double mul[max_subdiv + 1], c = 0;
+    double mul[16], c = 0;
 
     int pos = max_subdiv;
     while (c < str->split_cos && pos) {
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 69c4439..f6fa85c 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -1235,7 +1235,7 @@ get_bitmap_glyph(ASS_Renderer *render_priv, GlyphInfo *info)
     }
 
     const int n_outlines = 3;
-    ASS_Outline outline[n_outlines];
+    ASS_Outline outline[3];
     outline_copy(&outline[0], info->outline);
     outline_copy(&outline[1], info->border[0]);
     outline_copy(&outline[2], info->border[1]);
-- 
2.18.0.windows.1