From patchwork Tue Jul 3 18:16:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruiling Song X-Patchwork-Id: 9595 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:104:0:0:0:0:0 with SMTP id c4-v6csp1417499jad; Tue, 3 Jul 2018 11:17:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe7yjYnWPwzq+6hCxJT/+QmRWfHHsqJH1bNXsH8L1ackjHyVn8Hp062BPojBL3YiQYW9E/v X-Received: by 2002:a5d:41c5:: with SMTP id e5-v6mr23431799wrq.25.1530641874595; Tue, 03 Jul 2018 11:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530641874; cv=none; d=google.com; s=arc-20160816; b=skk6Va4R7epD8s6y0LX5nCtOamkOhJ7anWoxRHw+W8vxuq9p8/cAuC8wjM3PCzdlxh AIeLu3zv3MVFZp5lqATG4s4/LwixXF/Z61wDByXXV3NWU/Zp0G0ChT9KNtj3RQPNLnEV O094MN2Hf31UOOZfZi2KJHxEl8cMNhfrMQ+jXrkXanqk/U4cYGBR9QIKyoPJWXIoXJJS yvm9dLSQ5IMcAyzLNc1wLqdBvXKmLMVbJyFhY4daWnjrUmGFfeGhLT0PH1/dXJ9IMSZz frBBFHzmwHkBnLyk929Hbp4yOPQO1ov8jFx2V7gqmF5rRzIkane2ML6ypepK1R4kdv8B rkAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=BZG5vGuyXBd1RC88IabKYAkFqgpiodRIIz1qfES1P3o=; b=Iphxqf+f7GmpWpe/xOrKw8WzWR0HqpYUW/4iFqtFuWRMSeP4wD7tyHmbpZIAkWS+/a 1I14ElbnZf4gXG84hUmnXOaaqxnp7LxB1GcIFfQ8TsJGMpGkGum6c2ctt8ywLIR47HW5 +hYT8VXuY4Sl2ouvt6x3iXLb3e/m/0FCVoV1UamGdHyniisLqX5ex8/wGl5yZ2on1TZK xNRB5JJ8c/SmoBAKjNZBa77ouUQN/yPrEAxM2zRR12Egxv2Xji8CrWw+scU7oPcioGs4 ecikfomMlx52shgwpcmJZbMFpMdnn4mxxxWM5VU9D0jAMnPJDrU0hxfC57s2wEtFUnut mOyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b3-v6si1432207wrs.197.2018.07.03.11.17.54; Tue, 03 Jul 2018 11:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 834EF68A8FD; Tue, 3 Jul 2018 21:17:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AFD8F68A8F9 for ; Tue, 3 Jul 2018 21:17:37 +0300 (EEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2018 11:17:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,304,1526367600"; d="scan'208";a="69365539" Received: from ruiling-skl2.sh.intel.com ([10.239.160.154]) by fmsmga001.fm.intel.com with ESMTP; 03 Jul 2018 11:17:32 -0700 From: Ruiling Song To: ffmpeg-devel@ffmpeg.org Date: Wed, 4 Jul 2018 02:16:25 +0800 Message-Id: <1530641785-22104-2-git-send-email-ruiling.song@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530641785-22104-1-git-send-email-ruiling.song@intel.com> References: <1530641785-22104-1-git-send-email-ruiling.song@intel.com> Subject: [FFmpeg-devel] [PATCH v2 2/2] lavfi/vf_avgblur_opencl: remove useless clFinish(). X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Ruiling Song MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" The very last clFinish() should be ok. Signed-off-by: Ruiling Song --- libavfilter/vf_avgblur_opencl.c | 1 - 1 file changed, 1 deletion(-) 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);