diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-08 02:38:44 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-08 02:38:44 +0400 |
commit | 175e689cc5defe74d243ca37bcd74b37447d8716 (patch) | |
tree | 8afd5a56c570827eb41594c338356daf0f729404 /libavfilter/graphparser.c | |
parent | ec8e68c7633cd288c90e6e7057365d8c354661a4 (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.c | 1 |
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); |