vf_framestep: fix uninitilaized variable bug
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 03:09:15 +0000 (05:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 03:09:15 +0000 (05:09 +0200)
Found-by: gcc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_framestep.c

index e903765..dcb2665 100644 (file)
@@ -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);