[FFmpeg-cvslog] vf_framestep: fix uninitilaized variable bug

Michael Niedermayer git at videolan.org
Thu Aug 30 05:25:06 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 30 05:09:15 2012 +0200| [19dceef905468e11df26d0aa2f16b20d89e563a0] | committer: Michael Niedermayer

vf_framestep: fix uninitilaized variable bug

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

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

 libavfilter/vf_framestep.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavfilter/vf_framestep.c b/libavfilter/vf_framestep.c
index e903765..dcb2665 100644
--- a/libavfilter/vf_framestep.c
+++ b/libavfilter/vf_framestep.c
@@ -35,9 +35,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
 {
     FrameStepContext *framestep = ctx->priv;
     char *tailptr;
-    long int n;
-
-    framestep->frame_step = 1;
+    long int n = 1;
 
     if (args) {
         n = strtol(args, &tailptr, 10);



More information about the ffmpeg-cvslog mailing list