[FFmpeg-devel] [PATCH] lavfi/unsharp: clarify invalid filter param constraints
Stefano Sabatini
stefasab at gmail.com
Wed Mar 29 01:00:22 EEST 2023
On date Saturday 2023-03-25 17:20:44 +0100, Stefano Sabatini wrote:
> Clarify failure in case of x/y building a too big matrix size.
>
> Example:
> $ ffmpeg -hide_banner -f lavfi -i color=c=white:size=640x360,unsharp=lx=4:ly=21:la=-1:cx=5:cy=23:ca=0 -f null -
> [Parsed_unsharp_1 @ 0x55b100e7d740] chroma matrix size (cx/2+cy/2)*2=26 greater than maximum value 25
> color=c=white:size=640x360,unsharp=lx=4:ly=21:la=-1:cx=5:cy=23:ca=0: Invalid argument
>
> Fix trac issue:
> http://trac.ffmpeg.org/ticket/6033
> ---
> libavfilter/vf_unsharp.c | 30 ++++++++++++++++++++++--------
> 1 file changed, 22 insertions(+), 8 deletions(-)
Will apply in a few days if I see no comments.
More information about the ffmpeg-devel
mailing list