diff options
author | Jean Delvare <[email protected]> | 2013-06-12 10:48:57 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2013-06-14 03:52:32 +0200 |
commit | cef42ded8dd099bfc8de6cfcf75c579d13e582ad (patch) | |
tree | 0c1ec8764d580112e3384889f6d80ed81d420f76 /libavformat/cache.c | |
parent | e850a064cee3c291d8e122a6284bb0ea1a59787f (diff) |
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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/cache.c')
0 files changed, 0 insertions, 0 deletions