From patchwork Thu Dec 14 02:49:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chen, Wenbin" X-Patchwork-Id: 45129 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1225:b0:181:818d:5e7f with SMTP id v37csp4691487pzf; Wed, 13 Dec 2023 18:49:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVI0qPOxOmKxRTxFDxhn0RS2PGcn4hej2UO7KbFB24EO0WeEmWRKIu4h/1Z+lI9jp7dGOZ X-Received: by 2002:a17:906:c14b:b0:a1c:af1b:7562 with SMTP id dp11-20020a170906c14b00b00a1caf1b7562mr4605535ejc.62.1702522194764; Wed, 13 Dec 2023 18:49:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702522194; cv=none; d=google.com; s=arc-20160816; b=OheWr9xVRrlCjMk6/g6pXz/Vt5irXsMsatS9ooyTyYlPErnfdxwTDLqqTKoLEPF6ha ++URofDKYIExay5mki/1dH4sutUq2PG4nXt8DizD9Pie92+z3dWOJkSrxO9XtmtEGHX+ aAPAEooagurYQU9asStq/zFMjOYAJXKOA+JQ+Y6RHBC5QEuMxF33c+vvRD6/6hGSUcaE HXv6wY65ryBvsBpBQqsf/uOwN77aRXF39iVftYcWLkwvYr1D/9ABuQYvkbD6H5Cfezpd vjNtlLze70QMCeHG1SQZCA5W6yX0J4+kpRheFwW3n+J39W+3utHJKs1HQVY6Kmz7VEtB 2ZgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=BpXA7fcySVevn1BrRLNRx7tudVqhvSFadwJvFSQF2ro=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=Zcw2k/Nfr7+8941Fqu+QLfIffR0Heb8/EiQMjRyA5U6bvcxdmSA59q6C/jayt0yVHT 0SyWmt4il4krBeE07NAIp0oeoaAalbjep2AJcWLAJRIYnKIx57UOyLmnspeMbRogkT+c OYnFW5AWFhzg4V6lDI1P4Qo5/AMNm+KHxV5dTLhTz6AcBnC+BGgHKvSJvWh9C3Wi0NhN dZAX/bbcTnEVmsYqe+w+rhaOTDaYS2IDMKx2Bcap1VEhQ4bQyCnnVUc1nOjgC0pvIrlv P2iKsAzte+j7uCmTDEg42R4vAT2NFeXBA8JLi2o93Kcxs24M+7QmyVxmPnjlVN1H/pMK ct6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=kk6gl1yI; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id gw26-20020a170906f15a00b00a1b74d22168si5976946ejb.894.2023.12.13.18.49.43; Wed, 13 Dec 2023 18:49:54 -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=@intel.com header.s=Intel header.b=kk6gl1yI; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0808668D010; Thu, 14 Dec 2023 04:49:40 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1511A68D072 for ; Thu, 14 Dec 2023 04:49:32 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702522178; x=1734058178; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=xiJV22B5emsdT6Uff9+lk1i55gT7kIfjhQYsE8znibo=; b=kk6gl1yIQsx0lRSGWxDvbRBbw9gXu9PLxfzXJaHv5ji0vesAaf5AVXgt e+f97qjXegbZT0SJ4ARAZsisEhb4OEi03sCimA9CxHOHHTDLrqrT25ffr dcXXqAcejQx+3bJ2pWyS1lAwvyzzh5As3OHF7pxSbGtY+vTan4iQ0AX/j NPA7GfRKjnWAm7nN+46TneD+mXZkvmVGGpfq/u/9MHDtftCk5S4O5sHNG Rr8oouqqtPOIKTDDbGoK/pGP1qkjYccy6S9d08YoMjt350MxzN+wqee0r QFJdHWTy7MqBz23EjE3rZ0aXmglUNWd3c6TuM0s3lKmJ4vvmQqpWh5Xhu w==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="16610001" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="16610001" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 18:49:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="947403470" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="947403470" Received: from wenbin-z390-aorus-ultra.sh.intel.com ([10.239.156.43]) by orsmga005.jf.intel.com with ESMTP; 13 Dec 2023 18:49:28 -0800 From: wenbin.chen-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Thu, 14 Dec 2023 10:49:25 +0800 Message-Id: <20231214024928.230112-1-wenbin.chen@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/4] libavfilter/vf_dnn_detect: Fix an incorrect expression 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: NC/iozGxxibB From: Wenbin Chen Signed-off-by: Wenbin Chen --- libavfilter/vf_dnn_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c index 7ac3bb0b58..b82916ce6d 100644 --- a/libavfilter/vf_dnn_detect.c +++ b/libavfilter/vf_dnn_detect.c @@ -106,7 +106,7 @@ static int dnn_detect_parse_anchors(char *anchors_str, float **anchors) i++; } nb_anchor++; - anchors_buf = av_mallocz(nb_anchor * sizeof(*anchors)); + anchors_buf = av_mallocz(nb_anchor * sizeof(**anchors)); if (!anchors_buf) { return 0; }