From cb3034e0d16e753b93dd1d879044399e45e82bf7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 19 Oct 2011 00:04:33 +0200 Subject: [PATCH] =?UTF-8?q?vf=5Funsharp:=20Fix=20false=20=E2=80=98src2?= =?UTF-8?q?=E2=80=99=20may=20be=20used=20uninitialized=20in=20this=20funct?= =?UTF-8?q?ion=20warning.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Niedermayer --- libavfilter/vf_unsharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index bd78ade39c..e6257e2cab 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -73,7 +73,7 @@ static void apply_unsharp( uint8_t *dst, int dst_stride, int32_t res; int x, y, z; - const uint8_t *src2; + const uint8_t *src2 = NULL; //silence a warning if (!fp->amount) { if (dst_stride == src_stride)