[FFmpeg-devel,2/2] lavfi/vf_avgblur_opencl: remove useless clFinish().

Submitted by Danil Iashchenko on July 2, 2018, 11:53 p.m.

Details

Message ID 1530575597-13811-1-git-send-email-danyaschenko@gmail.com
State New
Headers show

Commit Message

Danil Iashchenko July 2, 2018, 11:53 p.m.
The very last clFinish() should be ok.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
---
 libavfilter/vf_avgblur_opencl.c | 1 -
 1 file changed, 1 deletion(-)

Looks good to me. Thanks!
Danil.

Patch hide | download patch | download mbox

diff --git a/libavfilter/vf_avgblur_opencl.c b/libavfilter/vf_avgblur_opencl.c
index bc6bcab..99ed1ca 100644
--- a/libavfilter/vf_avgblur_opencl.c
+++ b/libavfilter/vf_avgblur_opencl.c
@@ -228,7 +228,6 @@  static int avgblur_opencl_filter_frame(AVFilterLink *inlink, AVFrame *input)
                                          0, NULL, NULL);
             CL_FAIL_ON_ERROR(AVERROR(EIO), "Failed to enqueue horizontal "
                              "kernel: %d.\n", cle);
-            cle = clFinish(ctx->command_queue);

             err = ff_opencl_filter_work_size_from_image(avctx, global_work,
                                                         i == 0 ? output : intermediate, p, 0);