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 6F90C49039 for ; Thu, 2 May 2024 00:42:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AE27B68D76A; Thu, 2 May 2024 03:42:00 +0300 (EEST) 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 47FD968D6EA for ; Thu, 2 May 2024 03:41:53 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7DE66C0004 for ; Thu, 2 May 2024 00:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1714610512; 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=/6zywNQYDHYDpmIVabx0aBWT0PfRRaB9tWE0DO2YqEQ=; b=Ucm8v6vIGObFIQfjg4XVKdCWm3Bzrx1VU3LwyBD6taGqyDqaUIY8/cvjeNezQH1tOVVy8S loyhpWZZB/yE4qNzH58AJ1mF5t2FW05x1xKveOXDSVv59uZa509nFkf8NzgneCdPP/cy+s lR22tU3nSal8zJKPJpqUESdUOZmChS5sTpERRv+mWVZsZ9ZHatml6rmJYTB78ZUpWYcvCl VNuzJL0bDg4IFvhUrISvXuW5QZiyUKd/mfvTTMwwqwrZFsiydaDAaL/codM8tcMsVfStP4 W0C5DoGPv6XZI9RnLmtCwfiuEIuJGUXroYcMt2BzNmaTKAmG2sYfXNMYfEXkZQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 2 May 2024 02:41:45 +0200 Message-ID: <20240502004150.3627661-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240502004150.3627661-1-michael@niedermayer.cc> References: <20240502004150.3627661-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/7] avcodec/av1dec: initialize ret in av1_receive_frame_internal() 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: CID1596605 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/av1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 4f9222cca27..93ab04eb378 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -1262,7 +1262,7 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame) { AV1DecContext *s = avctx->priv_data; AV1RawTileGroup *raw_tile_group = NULL; - int i = 0, ret; + int i = 0, ret = 0; for (i = s->nb_unit; i < s->current_obu.nb_units; i++) { CodedBitstreamUnit *unit = &s->current_obu.units[i]; -- 2.43.2 _______________________________________________ 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".