[FFmpeg-devel] [PATCH 2/2] avfilter/vf_zoompan: Initialize ret

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


Silences: CID1351394

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 8d0103b..99a1a34 100644
--- a/libavfilter/vf_zoompan.c
+++ b/libavfilter/vf_zoompan.c
@@ -266,7 +266,7 @@ static int request_frame(AVFilterLink *outlink)
     ZPContext *s = ctx->priv;
     AVFrame *in = s->in;
     double zoom=1, dx=0, dy=0;
-    int ret;
+    int ret = -1;
 
     if (in) {
         ret = output_single_frame(ctx, in, s->var_values, s->current_frame,
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list