From patchwork Thu Dec 9 14:35:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 32250 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp451458iog; Thu, 9 Dec 2021 06:36:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJweDYvgvoeSCrMHmrTuOtSn8CkhTWoAhVnfrvjKgj804mClJLlx9AVDx17g4ozqQq6hgR9R X-Received: by 2002:a05:6402:5188:: with SMTP id q8mr30214398edd.181.1639060598003; Thu, 09 Dec 2021 06:36:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639060597; cv=none; d=google.com; s=arc-20160816; b=Bs0yMXeFtFa3qfc+ZNa0ICdQNiEyGU4dyp21iI6cpIQQ3OCTL77hY28ofbmUO6NO0J LyY3NPI+msQICOb09L2VxmQvq/lkpJbJDHbzS8lW9s7ulhvUMAvS2lKYNDeKGhc3D8sv b+buKEnde6g88qGya73sIhkLlnSy61W2rdkO/hFCOQ2KZcsA2vK6ZLgJXF01t3pitZRI n0KB/AgWi+l3S3bmZejcfEr1cwk5RT8Zzvmw35nrO1lbE5AXGDoslyY4/gQqreKwgpbb 7QeiTMIq0fyVIqHwPl4v2kB0AROaS4++tiaeuTNjwzJOjI3F+ehqvOlKwK+h9Qv40Td3 VPkg== 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:dkim-signature:delivered-to; bh=gnJw+PJYo6JCxwAtcoifDoqzGNmqEUlYAhKJNhRd/X4=; b=peZ5N0719zvfmepq/WB2m5FKac0HSaW4rGnaBSngGiujTSRmKUnDWmNbfoJh69PmtP ElDVjOjvJxt38Fohtn0qkBvGH63ijYpBNgAgZEf+agzP7UvJ3lXj0fqucjGgDnCYM74W EWGHw7u5EaZxKSe/Kkbl4U9S5W6zPDDzacKhbs7EbUPtq8NWbl/qqy1sYWQcCJVy0sUv KtHObrMPpHaOFxIZOyjldBQ87JRKU5Ui1d22nNuth7A/NAS/JQLhQq+JeBDke3nu9hO9 CGtz04zFJjJuCADbHVUgYBxkgkJHgnNnFEOxU+wFl6mKeCgpOo2U3CDFARuiQWLAu2Ad svvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=mTvRuykt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id ht9si2824ejc.620.2021.12.09.06.36.37; Thu, 09 Dec 2021 06:36:37 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=mTvRuykt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CA9D668AE34; Thu, 9 Dec 2021 16:36:33 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4D31068A9FC for ; Thu, 9 Dec 2021 16:36:27 +0200 (EET) Received: by mail-pj1-f52.google.com with SMTP id h24so4588189pjq.2 for ; Thu, 09 Dec 2021 06:36:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jFHuycB/RXa0DcthWhY2ELrHKe+5bUoC//HWZlyA4GY=; b=mTvRuyktj0MB5Ti31he0Lspnjixlf9/bcdkpUpjkk3pkJCs+A48TzHzd6lZdtxoXvY qSJISeXWBQzl6piY0Ws7iNb5TMWAvMPfHV/yo7HJNz/LP//fC2bWMNsqXXCXAyn9k9Y+ THhKzffp8DWfOeFHI6mh1cH5aNDRZaQ4mzw8Z8bDEIbct0W72c8c16uRQAhbq+JAyRzF s62DrswC6aS8NvF2V97DrOFei+SzEg56n2FeTapk74RuvXwEDeIRvQE7slseX4zxB+4Z CQDJIk8MslMnuyrk7uWIhFiNuGeMHE6DYiocPG+cvgVNA+SzRCLGo5AVk3yySMe7jn2d 5cxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jFHuycB/RXa0DcthWhY2ELrHKe+5bUoC//HWZlyA4GY=; b=o7EkCDIYLUUt8+S8QoBm7GeQFb4hzCzsMhHRwgTfIgMcBI1ZV9SxbK+2Z5brVhNY0r Pdr0qfWW6EdnoQ7iTIT5vhW+C73hDZn0ZgXKWtItsJf9Hws6DJqlEs9amsP8G79uSnwm ebmi+1mVsJngLieXYFNkK3BurLkCWQWPYRvhpM6kIaAe/MPWAqqrK3sgYaek/zBMB6Rh Olot9qiwKrtXV+jgjE/2SE0iBEfJjyU3+gehpRLWFdvk/m473sSge9bGG+EHaojsk6/w hOupHbVDJVz5VK84l6kZexECWAijww6x+gmGlyyl02zMjayIIwJHmXi9DjGjqWez+CrU EXYg== X-Gm-Message-State: AOAM530AMaC8wWoeDSkgJhWhO7vAOAeI3x6JP3WYFuLofYUNNHCrfaz0 aw8u9EchTww5y13+dzEWizBWIbGMmCg= X-Received: by 2002:a17:90b:2409:: with SMTP id nr9mr15869596pjb.244.1639060585445; Thu, 09 Dec 2021 06:36:25 -0800 (PST) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id l6sm8227260pfc.51.2021.12.09.06.36.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Dec 2021 06:36:25 -0800 (PST) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 9 Dec 2021 22:35:56 +0800 Message-Id: <1639060556-1953-1-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1639012783-32766-3-git-send-email-lance.lmwang@gmail.com> References: <1639012783-32766-3-git-send-email-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH v2] avfilter/dnn: fix incompatible integer to pointer conversion warning 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: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: hRF/ZqX6662B From: Limin Wang --- libavfilter/dnn/dnn_backend_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_common.c b/libavfilter/dnn/dnn_backend_common.c index 6a9c4cc..dd7bdf4 100644 --- a/libavfilter/dnn/dnn_backend_common.c +++ b/libavfilter/dnn/dnn_backend_common.c @@ -83,10 +83,10 @@ static void *async_thread_routine(void *args) void *request = async_module->args; if (async_module->start_inference(request) != DNN_SUCCESS) { - return DNN_ASYNC_FAIL; + return (void*)DNN_ASYNC_FAIL; } async_module->callback(request); - return DNN_ASYNC_SUCCESS; + return(void*)DNN_ASYNC_SUCCESS; } DNNReturnType ff_dnn_async_module_cleanup(DNNAsyncExecModule *async_module)