[FFmpeg-cvslog] avfilter/tonemap_vaapi: set va parameters filters and numbers

Fei Wang git at videolan.org
Tue Jan 18 11:39:10 EET 2022


ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Tue Jun 30 09:18:41 2020 +0800| [a17c99026520530b6d5649e4cbae34525d54c438] | committer: Haihao Xiang

avfilter/tonemap_vaapi: set va parameters filters and numbers

This can fill VAProcPipelineParameterBuffer correctly and make the
pipeline works.

Reviewed-by: Soft Works <softworkz at hotmail.com>
Signed-off-by: Fei Wang <fei.w.wang at intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a17c99026520530b6d5649e4cbae34525d54c438
---

 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, &params, output_frame);
     if (err < 0)
         goto fail;



More information about the ffmpeg-cvslog mailing list