Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-08 02:38:44 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-11-08 02:38:44 +0400
commit175e689cc5defe74d243ca37bcd74b37447d8716 (patch)
tree8afd5a56c570827eb41594c338356daf0f729404 /libavfilter/graphparser.c
parentec8e68c7633cd288c90e6e7057365d8c354661a4 (diff)
avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 098990bf45..7e25282d0d 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -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);