From patchwork Fri Oct 8 02:31:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Jianhua X-Patchwork-Id: 30981 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp416987ioa; Thu, 7 Oct 2021 19:31:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0GiP67STYRPLlLdMSC32O4TApWmPO0/8Jbc6ajGCgSMXtekDPbkdwlBGoFSwlsEWtVgyc X-Received: by 2002:a05:6402:4245:: with SMTP id g5mr11354161edb.158.1633660302372; Thu, 07 Oct 2021 19:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633660302; cv=none; d=google.com; s=arc-20160816; b=VhvkLWzERXr5K5R+Mc6NR6qCCTpDf4e6CYz7hMGyOy4F4FuvcQ9FlhAUTaUP/aSqP0 sZVPATWzmnD0qLIrZ+WH5mjir0/ZpcBDE3OtbShf3ZEQ00t6FOyR2cw2fd10DjEts1NE viASVN26CpODFSLUSVyO1/bt+Yj1tIFmDaVpM/x8Tss7TCyDkcqLog6x/Bum9YKOEkPY YySyq2NIFSAk8X8GH4xBlkDfjArPh58moHnpdLyP1UeQ/vVH/v0xOnLolczhNTGrll4Y 8JAMFZbaJIckQqQ1KajHRjZ/5raG6SyYLwHZsf14ffxRMY29lBG36qZjKsgOdW9HDe/J uuEg== 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; bh=a3K/Sb9an/hTorrdF801JrbQAvKt0unT3kxDZUgL340=; b=inqf38dQ4HATdYJ2SkrDJTGCYM/c8CLE1XDeyegwOfebLWDc1Pdt0zy7NPQZO/5Ewa HKA1Zcf4BmidFpvyOvY5FPMMxAj3x4zOY31AOikf0X10hLV58s1rX2D8EZqHGvgUk9rl VPsYS05ICznCku/fwRQpeT0CfUuudz1nIMWbL46pYfkKhkQrQ5DUU6KgCHhlJsoPkkw6 rMWNYtZJZAJMjmk35q8TsRD0f7DDcB+aom545J1Awr60c6i/KXgcngR2qo7BIvXauElN oWa3ZtB5iXf7XDoSPYxq/Y1xRFrv/R46aX+a4Hatm3wYq7HlgJ0FOsAot5ZpAJI/nuwY H+MA== 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 z20si1469119edi.541.2021.10.07.19.31.42; Thu, 07 Oct 2021 19:31:42 -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 6AFC668A3E8; Fri, 8 Oct 2021 05:31:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DA5556803C0 for ; Fri, 8 Oct 2021 05:31:12 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10130"; a="225195021" X-IronPort-AV: E=Sophos;i="5.85,356,1624345200"; d="scan'208";a="225195021" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 19:31:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,356,1624345200"; d="scan'208";a="489274220" Received: from otc-skl-e5-server.sh.intel.com ([10.239.43.106]) by orsmga008.jf.intel.com with ESMTP; 07 Oct 2021 19:31:05 -0700 From: Wu Jianhua To: ffmpeg-devel@ffmpeg.org Date: Fri, 8 Oct 2021 10:31:01 +0800 Message-Id: <20211008023101.4100-3-jianhua.wu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211008023101.4100-1-jianhua.wu@intel.com> References: <20211008023101.4100-1-jianhua.wu@intel.com> Subject: [FFmpeg-devel] [PATCH v2 3/3] libavfilter/vf_avgblur_vulkan: fix incorrect conditional judgement X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: Wu Jianhua MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 7GINMNsu3snB Signed-off-by: Wu Jianhua --- libavfilter/vf_avgblur_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_avgblur_vulkan.c b/libavfilter/vf_avgblur_vulkan.c index 5e38a80822..93a7f0d62a 100644 --- a/libavfilter/vf_avgblur_vulkan.c +++ b/libavfilter/vf_avgblur_vulkan.c @@ -333,7 +333,7 @@ static int avgblur_vulkan_filter_frame(AVFilterLink *link, AVFrame *in) } tmp = ff_get_video_buffer(outlink, outlink->w, outlink->h); - if (!out) { + if (!tmp) { err = AVERROR(ENOMEM); goto fail; }