Browse code

avfilter/drawbox: rename variable for maximum thickness

The present value name for maximum thickness is 'max' which results in a
parse error of any thickness expression containing 'max(val1,val2)'.

Value renamed to 'fill'. Tested locally and documented.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Gyan Doshi authored on 2017/11/20 19:06:39
Showing 2 changed files
... ...
@@ -7142,7 +7142,8 @@ value @code{invert} is used, the box edge color is the same as the
7142 7142
 video with inverted luma.
7143 7143
 
7144 7144
 @item thickness, t
7145
-The expression which sets the thickness of the box edge. Default value is @code{3}.
7145
+The expression which sets the thickness of the box edge.
7146
+A value of @code{fill} will create a filled box. Default value is @code{3}.
7146 7147
 
7147 7148
 See below for the list of accepted constants.
7148 7149
 @end table
... ...
@@ -7205,7 +7206,7 @@ drawbox=x=10:y=20:w=200:h=60:color=red@@0.5
7205 7205
 @item
7206 7206
 Fill the box with pink color:
7207 7207
 @example
7208
-drawbox=x=10:y=10:w=100:h=100:color=pink@@0.5:t=max
7208
+drawbox=x=10:y=10:w=100:h=100:color=pink@@0.5:t=fill
7209 7209
 @end example
7210 7210
 
7211 7211
 @item
... ...
@@ -47,7 +47,7 @@ static const char *const var_names[] = {
47 47
     "h",              ///< height of the rendered box
48 48
     "w",              ///< width  of the rendered box
49 49
     "t",
50
-    "max",
50
+    "fill",
51 51
     NULL
52 52
 };
53 53