1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/overlay_vaapi: build filter params just once

Signed-off-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
softworkz 2022-10-31 06:19:58 +00:00 committed by Haihao Xiang
parent a847c82289
commit e154d8931e

View File

@ -181,10 +181,6 @@ static int overlay_vaapi_blend(FFFrameSync *fs)
VARectangle overlay_region, output_region;
int err;
err = overlay_vaapi_build_filter_params(avctx);
if (err < 0)
return err;
err = ff_framesync_get_frame(fs, 0, &input_main, 0);
if (err < 0)
return err;
@ -309,6 +305,10 @@ static int overlay_vaapi_config_output(AVFilterLink *outlink)
if (err < 0)
return err;
err = overlay_vaapi_build_filter_params(avctx);
if (err < 0)
return err;
err = ff_framesync_init_dualinput(&ctx->fs, avctx);
if (err < 0)
return err;