From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 30C15481F2 for ; Thu, 14 Dec 2023 02:49:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D61D968D1EA; Thu, 14 Dec 2023 04:49:45 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F321468D1A4 for ; Thu, 14 Dec 2023 04:49:38 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702522184; x=1734058184; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=qCDrOSnNmDBL2atM1sCtrluHgHtjmwnrSScPe1qLKHc=; b=nt1thtPMGh1pJIQDH/0fXjhdb95mYr6AjbQ3FvQPsiC8qs+b3eL7xjlP b5mQwCclpBWrmFZP5dFNC7o5Z0R2yFKf+KxGJfJLzZ8+SvhA3zf2LmBpP M72PdHOfNP6K8KVYai0yrPNh4/skTPeTmgMUrmm4OHF8uMjtpd+j3vkje thj5DD0D6cF7JUrnivPKgvZIDSSGpHKMofhb1kbQQPDRAa1N8gJec95Lm Ww7FxpCyZ27tpffCoI0joOzManRhqpJ/BrIsKddVnXfIPdEQd7sA1QXVP 8rTr8KVHpWWKlTj23js6fh13iS9Kx2pBvzo9WchNhoiF64i+Pcx2xSYIG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="16610004" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="16610004" 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:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="947403474" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="947403474" 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:30 -0800 From: wenbin.chen-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Thu, 14 Dec 2023 10:49:27 +0800 Message-Id: <20231214024928.230112-3-wenbin.chen@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231214024928.230112-1-wenbin.chen@intel.com> References: <20231214024928.230112-1-wenbin.chen@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/4] libavfilter/vf_dnn_detect: Fix uninitialized variables error 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Wenbin Chen Signed-off-by: Wenbin Chen --- libavfilter/vf_dnn_detect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c index b2e9b8d4c6..5668b8b017 100644 --- a/libavfilter/vf_dnn_detect.c +++ b/libavfilter/vf_dnn_detect.c @@ -139,7 +139,8 @@ static int dnn_detect_parse_yolo_output(AVFrame *frame, DNNData *output, int out { DnnDetectContext *ctx = filter_ctx->priv; float conf_threshold = ctx->confidence; - int detection_boxes, box_size, cell_w, cell_h, scale_w, scale_h; + int detection_boxes, box_size; + int cell_w = 0, cell_h = 0, scale_w = 0, scale_h = 0; int nb_classes = ctx->nb_classes; float *output_data = output[output_index].data; float *anchors = ctx->anchors; -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".