From patchwork Sun May 26 23:52:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 49277 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:542:0:b0:460:55fa:d5ed with SMTP id 63csp2958628vqf; Sun, 26 May 2024 16:53:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXPN0Itlp5FrYfFxDKcrmtTWQKftBFrRMuAWYffROHeCIQ8Fm5cSYQtMPKgXBSACoYU9EHwgxmeyZQlCBDBhlJ92DYpdcFSP7Sxgw== X-Google-Smtp-Source: AGHT+IFgb/zAip3xCNjCRjR4Cn4hlO4x15bxQlNFHvbNCz/31bCTl2E7K4CJfjxZPf14pvT0QILu X-Received: by 2002:a19:5e09:0:b0:51f:2709:3641 with SMTP id 2adb3069b0e04-529645e4f17mr4293641e87.26.1716767585572; Sun, 26 May 2024 16:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716767585; cv=none; d=google.com; s=arc-20160816; b=jy0Mnfh4WkVq22XlTXrsopxUf7lN0pvJdkov+bzcoWJTgOGemE2yeM5jX/efMJ/ebQ F41GBqihFG1p2GbSao+1RAJoSBZr7On3NKywLD7nd4hcBlaDonL/l5dUSH8R5KCuP/TA nGHHSz9LLJnZypJfkT7u2KKHdicVLQtFNo8dGW2O0EDmu+cGJpQPwetkB0sDTshVGffu 2yfQSXkFzSPOAh94f6E7+DxdGnWoY+Vhk3g1VhD1CSr+kOmudJshEIRtuZB3N98XBbMU 5oJ1YGjxXKpZfnMlwnzExLFaLM+YlBeoMt/VbzM+G347a1QxWdjdc5Zg1JTeSUlF7Hc+ lfFQ== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=Ret8NGdv35rXF1wpXljw+cn6WoI5rsg05PKFToxgfCU=; fh=e5zN9xSzcxLA6bGo3lF+CqTbY/oLwzApV03EO/RBfgQ=; b=CNOobrQ9mtWpGMqzRgVxJ7ac3IeCHKBbQ54mvtKhtPKkFPljGjWul+4GgavyKfNEhE CFDqvq6xCIHbFKpER33uZnaMrxHDvoN6S6fDP1vfiLfdjQgsuAtZ3U+oBhiBsAkMOoKD tdiH656E7lMBsEgRzuqi6NP7Nl0vQluj9FLM5LCNXCUuPvygoacS+FVIyf9QHo5XYwlV kLaex7M+e0BQAWKGROMFYB8AT6sfjnc9xrDHeCQUgxYKYSWLjM/vdHxrbBrCWr3Tqra/ 8hah+qzhc28O9Tn/ZNys+Pwgbgr14TAiszgIsq+56tRkjnmxZ2k5+D7/AcvxPIh3zqyH Zt+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=LH3CDO7m; 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 2adb3069b0e04-5297094ea18si1967073e87.446.2024.05.26.16.53.05; Sun, 26 May 2024 16:53:05 -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; dkim=neutral (body hash did not verify) header.i=@niedermayer.cc header.s=gm1 header.b=LH3CDO7m; 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 A75A268D515; Mon, 27 May 2024 02:52:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 29B9A68D4F4 for ; Mon, 27 May 2024 02:52:34 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5BE61C0002 for ; Sun, 26 May 2024 23:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1716767553; 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=dQ16opqPu4oTgETho0eeqFBx/xT3IzQX5JKajRd0Q/w=; b=LH3CDO7mqULUcJiTlJ0NY/vyjaDj6qZDLeYEpn9AhEUU1E3a5oGlZKBA1+CmLmjla/GRbj 9i0pDFeNeSXn6/9ErW0t2j+oCMKR4fqwqC3Pz3ZDe2faBuByJI4QbAQ2S83LGU8eXmg71q R8mlMXxLBvW553WiVpmlTJPcsGwMMQVycXsSCOepqqEWLjSTatMNg3ITzWZlnd0q4yXKmj ORfRNEOVth7NwJzXUNT5Izfi/Wn+ApZQSs4tYIwbzSeUSpo/yB4ywlEq3oYxkNnYfIG9q1 NvCmVqXcmq0iiNLxPtQRTSRQ61UlYLlbCWFmoOImS/pplXtfa2hvYHtm/C4T+A== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 27 May 2024 01:52:15 +0200 Message-ID: <20240526235230.2876318-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240526235230.2876318-1-michael@niedermayer.cc> References: <20240526235230.2876318-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 03/17] avcodec/dxva2: initialize validate 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: G3brlKtcHQ3A Fixes: CID1591915 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/dxva2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c index 550369ba51f..1a33c8bbac7 100644 --- a/libavcodec/dxva2.c +++ b/libavcodec/dxva2.c @@ -269,7 +269,7 @@ static int dxva_get_decoder_guid(AVCodecContext *avctx, void *service, void *sur *decoder_guid = ff_GUID_NULL; for (i = 0; dxva_modes[i].guid; i++) { const dxva_mode *mode = &dxva_modes[i]; - int validate; + int validate = 0; if (!dxva_check_codec_compatibility(avctx, mode)) continue;