diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-07 00:36:29 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-03-28 07:59:04 +0100 |
commit | 2d66fc543b01995d6146fc132a778d3e722ca665 (patch) | |
tree | 22aadf11effb0a211c7f10461baf1fa238ba4da3 /doc | |
parent | 8b9a153ef3673d5847291987fa0dcddeac4a640b (diff) | |
download | ffmpeg-2d66fc543b01995d6146fc132a778d3e722ca665.tar.gz |
lavfi/gradfun: fix rounding in MMX code.
Current code divides before increasing precision.
Also reduce upper bound for strength from 255 to 64. This will prevent
an overflow in the SSSE3 and MMX filter_line code: delta is expressed as
an u16 being shifted by 2 to the left. If it overflows, having a
strength not above 64 will make sure that m is set to 0 (making the
m*m*delta >> 14 expression void).
A value above 64 should not make any sense unless gradfun is used as
a blur filter.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 9b39ea50ef..88888c60e3 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1142,7 +1142,7 @@ The filter takes two optional parameters, separated by ':': @var{strength} is the maximum amount by which the filter will change any one pixel. Also the threshold for detecting nearly flat -regions. Acceptable values range from .51 to 255, default value is +regions. Acceptable values range from .51 to 64, default value is 1.2, out-of-range values will be clipped to the valid range. @var{radius} is the neighborhood to fit the gradient to. A larger |