[MPlayer-cvslog] r28836 - trunk/libass/ass_render.c

greg subversion at mplayerhq.hu
Fri Mar 6 10:20:10 CET 2009


Author: greg
Date: Fri Mar  6 10:20:09 2009
New Revision: 28836

Log:
Raise max. number of \be applications to 100, introduce #define for it.

Modified:
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	Fri Mar  6 02:26:44 2009	(r28835)
+++ trunk/libass/ass_render.c	Fri Mar  6 10:20:09 2009	(r28836)
@@ -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 @@ static char* parse_tag(char* p, double p
 	} 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;



More information about the MPlayer-cvslog mailing list