Commit 82397084 authored by James Almer's avatar James Almer

avfilter/vf_scale: properly reinitialize framesync

Fixes leaks as reported by ASAN and Valgrind.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent ccf395e8
......@@ -766,6 +766,7 @@ static int config_props(AVFilterLink *outlink)
av_freep(&flags_val);
if (ctx->filter != &ff_vf_scale2ref) {
ff_framesync_uninit(&scale->fs);
ret = ff_framesync_init(&scale->fs, ctx, ctx->nb_inputs);
if (ret < 0)
return ret;
......
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