[FFmpeg-cvslog] avfilter/vf_zoompan: Fix use of uninitialized variables

Michael Niedermayer git at videolan.org
Fri Feb 12 16:00:13 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Feb 12 00:33:11 2016 +0100| [03b26a2514c5df8777f07b0e0964c0b4ca065d72] | committer: Michael Niedermayer

avfilter/vf_zoompan: Fix use of uninitialized variables

Fixes: CID1351392
Fixes: CID1351393
Fixes: CID1351395

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavfilter/vf_zoompan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_zoompan.c b/libavfilter/vf_zoompan.c
index 8d640e7..8d0103b 100644
--- a/libavfilter/vf_zoompan.c
+++ b/libavfilter/vf_zoompan.c
@@ -265,7 +265,7 @@ static int request_frame(AVFilterLink *outlink)
     AVFilterContext *ctx = outlink->src;
     ZPContext *s = ctx->priv;
     AVFrame *in = s->in;
-    double zoom, dx, dy;
+    double zoom=1, dx=0, dy=0;
     int ret;
 
     if (in) {



More information about the ffmpeg-cvslog mailing list