summaryrefslogtreecommitdiff
path: root/libavfilter/vf_unsharp.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-13 16:30:44 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-29 07:20:05 +0200
commit1ee20141900c98f9dc25eca121c66c3ff468c1e4 (patch)
tree0a5a0945ed314e6761edaa9726cc6576647708cb /libavfilter/vf_unsharp.c
parent998e8519efbc772994c5ba19c0d39573998be9db (diff)
vf_unsharp: set default chroma size value to 5x5
The previous default value 0x0 was not good, since it is not even valid. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/vf_unsharp.c')
-rw-r--r--libavfilter/vf_unsharp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c
index ebc8f04bbd..a40df137b6 100644
--- a/libavfilter/vf_unsharp.c
+++ b/libavfilter/vf_unsharp.c
@@ -132,8 +132,8 @@ static void set_filter_param(FilterParam *fp, int msize_x, int msize_y, double a
static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
{
UnsharpContext *unsharp = ctx->priv;
- int lmsize_x = 5, cmsize_x = 0;
- int lmsize_y = 5, cmsize_y = 0;
+ int lmsize_x = 5, cmsize_x = 5;
+ int lmsize_y = 5, cmsize_y = 5;
double lamount = 1.0f, camount = 0.0f;
if (args)