[FFmpeg-devel] [PATCH 1/2] avfilter/vf_zoompan: Fix use of uninitialized variables

Michael Niedermayer michael at niedermayer.cc
Fri Feb 12 00:33:11 CET 2016


Fixes: CID1351392
Fixes: CID1351393
Fixes: CID1351395

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 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) {
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list