Commit a17c9902 authored by Fei Wang's avatar Fei Wang Committed by Haihao Xiang

avfilter/tonemap_vaapi: set va parameters filters and numbers

This can fill VAProcPipelineParameterBuffer correctly and make the
pipeline works.
Reviewed-by: 's avatarSoft Works <softworkz@hotmail.com>
Signed-off-by: 's avatarFei Wang <fei.w.wang@intel.com>
Signed-off-by: 's avatarHaihao Xiang <haihao.xiang@intel.com>
parent 51649606
......@@ -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, &params, output_frame);
if (err < 0)
goto fail;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment