mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00: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:
parent
ccf395e8bd
commit
82397084a9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user