[FFmpeg-cvslog] avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()

Michael Niedermayer git at videolan.org
Fri Nov 8 00:02:37 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov  7 23:38:44 2013 +0100| [175e689cc5defe74d243ca37bcd74b37447d8716] | committer: Michael Niedermayer

avfilter/graphparser: zero filter_ctx in case of deallocation in create_filter()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=175e689cc5defe74d243ca37bcd74b37447d8716
---

 libavfilter/graphparser.c |    1 +
 1 file changed, 1 insertion(+)

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);



More information about the ffmpeg-cvslog mailing list