[FFmpeg-devel] [PATCH v1] avfilter/tonemap_vaapi: set va parameters filters and numbers
Fei Wang
fei.w.wang at intel.com
Tue Jun 30 04:18:41 EEST 2020
This can fill VAProcPipelineParameterBuffer correctly and make the
pipeline works.
Signed-off-by: Fei Wang <fei.w.wang at intel.com>
---
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 2f41b90424..9f52590a49 100644
--- a/libavfilter/vf_tonemap_vaapi.c
+++ b/libavfilter/vf_tonemap_vaapi.c
@@ -296,6 +296,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;
--
2.17.1
More information about the ffmpeg-devel
mailing list