changeset 28801:6dd365856eb1

Raise max. number of \be applications to 100, introduce #define for it.
author greg
date Fri, 06 Mar 2009 09:20:09 +0000
parents 83f8140eb736
children 0d4550d07af0
files libass/ass_render.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Fri Mar 06 01:26:44 2009 +0000
+++ b/libass/ass_render.c	Fri Mar 06 09:20:09 2009 +0000
@@ -44,6 +44,7 @@
 #define MAX_GLYPHS 3000
 #define MAX_LINES 300
 #define BLUR_MAX_RADIUS 50.0
+#define MAX_BE 100
 #define ROUND(x) ((int) ((x) + .5))
 #define SUBPIXEL_MASK 56	// d6 bitmask for subpixel accuracy adjustment
 
@@ -1158,9 +1159,9 @@
 	} else if (mystrcmp(&p, "be")) {
 		int val;
 		if (mystrtoi(&p, &val)) {
-			// Clamp to 10, since high values need excessive CPU
+			// Clamp to a safe upper limit, since high values need excessive CPU
 			val = (val < 0) ? 0 : val;
-			val = (val > 10) ? 10 : val;
+			val = (val > MAX_BE) ? MAX_BE : val;
 			render_context.be = val;
 		} else
 			render_context.be = 0;