avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 7 Nov 2013 22:38:44 +0000 (23:38 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 7 Nov 2013 22:38:44 +0000 (23:38 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/graphparser.c

index 098990b..7e25282 100644 (file)
@@ -133,6 +133,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
             av_log(log_ctx, AV_LOG_ERROR, " with args '%s'", args);
         av_log(log_ctx, AV_LOG_ERROR, "\n");
         avfilter_free(*filt_ctx);
+        *filt_ctx = NULL;
     }
 
     av_free(tmp_args);