Commit f374e998 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_fade: fix memleaks of args

Fixes: CID718989
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0f46825d
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment