aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_scale.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-05-05 11:39:49 -0300
committerJames Almer <jamrial@gmail.com>2024-05-05 21:37:07 -0300
commit82397084a9328d3f67caa9ce519304b714a132ea (patch)
tree2998fdd6c727b3b2d2471651f2f93ec2625f6160 /libavfilter/vf_scale.c
parentccf395e8bde3e5d6b96be3e0ba25e2d162d4117e (diff)
downloadffmpeg-82397084a9328d3f67caa9ce519304b714a132ea.tar.gz
avfilter/vf_scale: properly reinitialize framesync
Fixes leaks as reported by ASAN and Valgrind. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vf_scale.c')
-rw-r--r--libavfilter/vf_scale.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 07e9025335..841075193e 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -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;