summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-07 23:38:44 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-07 23:38:44 +0100
commit175e689cc5defe74d243ca37bcd74b37447d8716 (patch)
tree8afd5a56c570827eb41594c338356daf0f729404
parentec8e68c7633cd288c90e6e7057365d8c354661a4 (diff)
downloadffmpeg-streaming-175e689cc5defe74d243ca37bcd74b37447d8716.zip
ffmpeg-streaming-175e689cc5defe74d243ca37bcd74b37447d8716.tar.gz
avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/graphparser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 098990b..7e25282 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);
OpenPOWER on IntegriCloud