mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
vf_fade: free type when overwriting it.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user