From cef42ded8dd099bfc8de6cfcf75c579d13e582ad Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 12 Jun 2013 10:48:57 +0200 Subject: drawbox: Respect thickness parameter The drawbox video filter is drawing lines one pixel thinner than requested. The default thickness is 4 pixel but in fact the lines drawn by default are only 3 pixel wide. Change the comparisons in the code to fix this off-by-one bug. Also change the default thickness from 4 to 3 to minimize the unexpected changes from the user's perspective. As I was already touching these lines, I also removed the "maximum" in the thickness parameter description, as I don't think it was adding any value and I even found it confusing. Reviewed-by: Andrey Utkin Signed-off-by: Michael Niedermayer --- doc/filters.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/filters.texi b/doc/filters.texi index 0381c6a740..6e616b26b4 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -2900,7 +2900,7 @@ value @code{invert} is used, the box edge color is the same as the video with inverted luma. @item thickness, t -Set the thickness of the box edge. Default value is @code{4}. +Set the thickness of the box edge. Default value is @code{3}. @end table @subsection Examples -- cgit v1.2.3