vf_unsharp: Fix false ‘src2’ may be used uninitialized in this function warning.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Oct 2011 22:04:33 +0000 (00:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 18 Oct 2011 22:04:33 +0000 (00:04 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_unsharp.c

index bd78ade..e6257e2 100644 (file)
@@ -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)