Browse Source

vf_fade: fix memleaks of args

Fixes: CID718989
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
f374e9989b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/vf_fade.c

+ 2
- 2
libavfilter/vf_fade.c View File

@@ -100,14 +100,14 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
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;
}
}



Loading…
Cancel
Save