mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 11:00:08 +01:00
vf_fade: fix memleaks of args
Fixes: CID718989
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f374e9989b)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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) {
|
if ((ret = av_opt_set(fade, "start_frame", expr, 0)) < 0) {
|
||||||
av_log(ctx, AV_LOG_ERROR,
|
av_log(ctx, AV_LOG_ERROR,
|
||||||
"Invalid value '%s' for start_frame option\n", expr);
|
"Invalid value '%s' for start_frame option\n", expr);
|
||||||
return ret;
|
goto end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (expr = av_strtok(NULL, ":", &bufptr)) {
|
if (expr = av_strtok(NULL, ":", &bufptr)) {
|
||||||
if ((ret = av_opt_set(fade, "nb_frames", expr, 0)) < 0) {
|
if ((ret = av_opt_set(fade, "nb_frames", expr, 0)) < 0) {
|
||||||
av_log(ctx, AV_LOG_ERROR,
|
av_log(ctx, AV_LOG_ERROR,
|
||||||
"Invalid value '%s' for nb_frames option\n", expr);
|
"Invalid value '%s' for nb_frames option\n", expr);
|
||||||
return ret;
|
goto end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user