mirror of https://git.ffmpeg.org/ffmpeg.git
vf_fade: free type when overwriting it.
This commit is contained in:
parent
c266eb1928
commit
f8210f892e
|
@ -94,6 +94,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (expr = av_strtok(args1, ":", &bufptr)) {
|
if (expr = av_strtok(args1, ":", &bufptr)) {
|
||||||
|
av_free(fade->type);
|
||||||
if (!(fade->type = av_strdup(expr))) {
|
if (!(fade->type = av_strdup(expr))) {
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
goto end;
|
goto end;
|
||||||
|
|
Loading…
Reference in New Issue