ffmpeg | branch: master | Fei Wang <[email protected]> | 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 <[email protected]>
Signed-off-by: Fei Wang <[email protected]>
Signed-off-by: Haihao Xiang <[email protected]>

> 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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to