mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avfilter/vf_scale: properly reinitialize framesync
Fixes leaks as reported by ASAN and Valgrind. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user