diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-09-17 13:55:06 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-09-17 13:57:45 +0200 |
commit | 4096bb176b3971a26d1dedd62a05bcea68eb24d6 (patch) | |
tree | fb49f359954110f1aa934b7d29e259f74819da53 /libavfilter/vf_unsharp.c | |
parent | d790887d1c6ec00d563aedc2f243712815594654 (diff) | |
download | ffmpeg-4096bb176b3971a26d1dedd62a05bcea68eb24d6.tar.gz |
avfilter/vf_unsharp: limit matrix size in either direction to 23
Anything bigger is not supported anyway.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_unsharp.c')
-rw-r--r-- | libavfilter/vf_unsharp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index aea98509ae..7c600c91c1 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -266,7 +266,7 @@ end: #define OFFSET(x) offsetof(UnsharpContext, x) #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM #define MIN_SIZE 3 -#define MAX_SIZE 63 +#define MAX_SIZE 23 static const AVOption unsharp_options[] = { { "luma_msize_x", "set luma matrix horizontal size", OFFSET(lmsize_x), AV_OPT_TYPE_INT, { .i64 = 5 }, MIN_SIZE, MAX_SIZE, FLAGS }, { "lx", "set luma matrix horizontal size", OFFSET(lmsize_x), AV_OPT_TYPE_INT, { .i64 = 5 }, MIN_SIZE, MAX_SIZE, FLAGS }, |