From a17c99026520530b6d5649e4cbae34525d54c438 Mon Sep 17 00:00:00 2001 From: Fei Wang Date: Tue, 30 Jun 2020 09:18:41 +0800 Subject: [PATCH] avfilter/tonemap_vaapi: set va parameters filters and numbers This can fill VAProcPipelineParameterBuffer correctly and make the pipeline works. Reviewed-by: Soft Works Signed-off-by: Fei Wang Signed-off-by: Haihao Xiang --- libavfilter/vf_tonemap_vaapi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavfilter/vf_tonemap_vaapi.c b/libavfilter/vf_tonemap_vaapi.c index 5a41f14d00..cd2f4c2195 100644 --- a/libavfilter/vf_tonemap_vaapi.c +++ b/libavfilter/vf_tonemap_vaapi.c @@ -294,6 +294,11 @@ static int tonemap_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame if (err < 0) goto fail; + if (vpp_ctx->nb_filter_buffers) { + params.filters = &vpp_ctx->filter_buffers[0]; + params.num_filters = vpp_ctx->nb_filter_buffers; + } + err = ff_vaapi_vpp_render_picture(avctx, ¶ms, output_frame); if (err < 0) goto fail;