[FFmpeg-devel] [PATCH] vf_unsharp: extend/improve feedback for validity checks

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat Aug 13 01:29:25 CEST 2011


On date Saturday 2011-08-13 01:11:49 +0200, Stefano Sabatini encoded:
> Abort for invalid too big values, and exactly state why the input
> value is invalid.
> 
> In particular, avoid out-of-buffer access with too big values.
> ---
>  libavfilter/vf_unsharp.c |   20 ++++++++++++++------
>  1 files changed, 14 insertions(+), 6 deletions(-)

Regarding the syntax, the mp=unsharp filter supports a format of the
kind:
[lc]XxY:AMOUNT

while unsharp supports only (awkward) positional parameters.

A better mixed solution would be to implement a syntax of the kind:
[lc]=XxY+AMOUNT

for example:
l=5x5+0.3:c=3x3-2.0

while back-supporting the old syntax.
-- 
FFmpeg = Freak Faithless Muttering Power Erroneous Gadget


More information about the ffmpeg-devel mailing list