[FFmpeg-cvslog] vf_unsharp: Fix false ‘src2’ may be used uninitia =?UTF-8?Q?lized=20in=20this=20functio?==?UTF-8?Q?n=20warning?=.

Michael Niedermayer git at videolan.org
Wed Oct 19 00:28:51 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 19 00:04:33 2011 +0200| [cb3034e0d16e753b93dd1d879044399e45e82bf7] | committer: Michael Niedermayer

vf_unsharp: Fix false ‘src2’ may be used uninitialized in this function warning.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb3034e0d16e753b93dd1d879044399e45e82bf7
---

 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 bd78ade..e6257e2 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)



More information about the ffmpeg-cvslog mailing list