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 166D945E9B for ; Sun, 12 May 2024 00:04:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 900D268D446; Sun, 12 May 2024 03:03:57 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DF70268D3C5 for ; Sun, 12 May 2024 03:03:50 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 066361BF203 for ; Sun, 12 May 2024 00:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1715472230; 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; bh=YwV962M0qjOXP9lBC02Le4sjMHr+t+N1U4/ckCV6bM0=; b=FDGRnvzDbLWki9unXpt0U1yFWoC8WlpInRi7WkIDch6oTfwJeyNWDwXAViawEppi9pcV1h 2q7kY7GAG7YCN4MhKAWb/o2mIiVknnYZQEfY3uUyEL0txjXHSIK1g8FfCo+ZxeAszGqqLE 02JYqGMA7itFmDeMVW20j0y5IR1DwjeAqfDUoVvOS8SnQL7tefTlIS/EvLUNaXuIgz5uu8 +1KXD5lN/RRpUeFDoTms76i4wt4wxNQSnFxXru4COevyZASGTw9jtpG9bh74jL1ia6OoNA GVFjt3R/Ej3cLcUVfPsikJdQY/0MiHLdDMhMMBIhOviUl3xfGTRvsPKcoQX+3g== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 12 May 2024 02:03:45 +0200 Message-ID: <20240512000349.3381912-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/5] avcodec/lpc: copy levenson coeffs only when they have been computed 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: CID1473514 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/lpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 8305cc0596a..981dacce8a5 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -282,8 +282,9 @@ int ff_lpc_calc_coefs(LPCContext *s, double av_uninit(weight); memset(var, 0, FFALIGN(MAX_LPC_ORDER+1,4)*sizeof(*var)); - for(j=0; j 1) + for(j=0; j