mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avfilter/overlay_vaapi: build filter params just once
Signed-off-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
parent
a847c82289
commit
e154d8931e
@ -181,10 +181,6 @@ static int overlay_vaapi_blend(FFFrameSync *fs)
|
|||||||
VARectangle overlay_region, output_region;
|
VARectangle overlay_region, output_region;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
err = overlay_vaapi_build_filter_params(avctx);
|
|
||||||
if (err < 0)
|
|
||||||
return err;
|
|
||||||
|
|
||||||
err = ff_framesync_get_frame(fs, 0, &input_main, 0);
|
err = ff_framesync_get_frame(fs, 0, &input_main, 0);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
@ -309,6 +305,10 @@ static int overlay_vaapi_config_output(AVFilterLink *outlink)
|
|||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
err = overlay_vaapi_build_filter_params(avctx);
|
||||||
|
if (err < 0)
|
||||||
|
return err;
|
||||||
|
|
||||||
err = ff_framesync_init_dualinput(&ctx->fs, avctx);
|
err = ff_framesync_init_dualinput(&ctx->fs, avctx);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user