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 D673B48996 for ; Sun, 21 Apr 2024 23:07:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 53E4968D2A2; Mon, 22 Apr 2024 02:07:12 +0300 (EEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0515E68D0B5 for ; Mon, 22 Apr 2024 02:07:03 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5946B40002 for ; Sun, 21 Apr 2024 23:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1713740823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cv4o3fewE8KMD/ZIvzV2TU3C5BNNsCpDqk7cwj/9fDs=; b=YOLHZ+LhchTfkXx/JZdyXX/YkNcWb5hWwzIWDlYPH3mkgYzDeIY9aYKDJRu5n4TfLoXohV MG8zAYhXY2uSjR3MgtuvD30F1DOTmnJ9WjRmfsPoU/+dvj0MGYTa0BvZA0iOzNNSFU+pf/ dugDpmIt+BfUtvX3hGva+W4Sdh/Yp6LKuk8ACNmBiDCqoK5gunYn9z/qljz+CgH1yawpXj SR85d9RBndkThmATjfsKc6BnvDFxC1z2oUpP8c//WG86DfvyeKeKTBo3QJ0fKtaSlWOXSI LcTlbyvDeGs3j6jxMWe7GUnj9TZeGrIUP49s+XNj2OG59NDu+Pmp3olW42+SYA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 22 Apr 2024 01:07:00 +0200 Message-Id: <20240421230701.4178782-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240421230701.4178782-1-michael@niedermayer.cc> References: <20240421230701.4178782-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/3] avfilter/signature_lookup: Initialize bestmatch 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: Fixes: CID1500345 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/signature_lookup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c index a3086b38cca..dc0a2ef2b24 100644 --- a/libavfilter/signature_lookup.c +++ b/libavfilter/signature_lookup.c @@ -535,16 +535,14 @@ static MatchingInfo lookup_signatures(AVFilterContext *ctx, SignatureContext *sc { CoarseSignature *cs, *cs2; MatchingInfo *infos; - MatchingInfo bestmatch; + MatchingInfo bestmatch = {0}; MatchingInfo *i; cs = first->coarsesiglist; cs2 = second->coarsesiglist; /* score of bestmatch is 0, if no match is found */ - bestmatch.score = 0; bestmatch.meandist = 99999; - bestmatch.whole = 0; fill_l1distlut(sc->l1distlut); -- 2.25.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".