[FFmpeg-cvslog] vf_fade: fix memleaks of args

Michael Niedermayer git at videolan.org
Thu Oct 25 21:29:18 CEST 2012


ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 13 01:08:08 2012 +0200| [7a0e5a63d01b8d70e638dff3f136b49e57c944ee] | committer: Michael Niedermayer

vf_fade: fix memleaks of args

Fixes: CID718989
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit f374e9989be2478d276ed9e1c330a5726a26509c)

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

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

 libavfilter/vf_fade.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index afd700b..3bde5dd 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -103,14 +103,14 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
         if ((ret = av_opt_set(fade, "start_frame", expr, 0)) < 0) {
             av_log(ctx, AV_LOG_ERROR,
                    "Invalid value '%s' for start_frame option\n", expr);
-            return ret;
+            goto end;
         }
     }
     if (expr = av_strtok(NULL, ":", &bufptr)) {
         if ((ret = av_opt_set(fade, "nb_frames", expr, 0)) < 0) {
             av_log(ctx, AV_LOG_ERROR,
                    "Invalid value '%s' for nb_frames option\n", expr);
-            return ret;
+            goto end;
         }
     }
 



More information about the ffmpeg-cvslog mailing list