[FFmpeg-cvslog] vf_fade: free type when overwriting it.

Nicolas George git at videolan.org
Sat Mar 3 15:08:16 CET 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sat Mar  3 12:20:30 2012 +0100| [f8210f892ec5cb3eeb0e267a18ae8531141104b5] | committer: Nicolas George

vf_fade: free type when overwriting it.

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

 libavfilter/vf_fade.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index 7fe0dae..79c8994 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -94,6 +94,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
     }
 
     if (expr = av_strtok(args1, ":", &bufptr)) {
+        av_free(fade->type);
         if (!(fade->type = av_strdup(expr))) {
             ret = AVERROR(ENOMEM);
             goto end;



More information about the ffmpeg-cvslog mailing list