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 3396B47A6D for ; Sun, 28 Apr 2024 21:31:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 23B8268D41D; Mon, 29 Apr 2024 00:31:05 +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 E078968D097 for ; Mon, 29 Apr 2024 00:30:56 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4AD991BF204 for ; Sun, 28 Apr 2024 21:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1714339856; 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=ajDLxl46MbfC34gH9SdX/rHrYQIWg9l106rc3ZnM/CE=; b=Ygxo5ZoeMNmhEZPJn18Kt0gZJ2GmP2ICdhS/aP3vCB1+7LDDTsIH6qR1LQeMYwUoWo3z6A r9TDtCqvj3H1OEyA0GsZgPOQoi+5r4k53ZQgYjecn5JP99xNJ6y4DFFkfX4o//UP4uh7+O KMh6j5VXe5IK7RBTzRyjnar6EY+1zJKj628bkr2NjUHRpHDt5aEt6+DVgphUf78cVgpYfS nGUWaqE/XHQQBOLH5mwYFKzqosKOfSnfYm7CY4qC43cInbYsNpOiFgLe40VVZs/A2N1aXa PrGpUElu4y6wPlYqFMRlmrHmcTdhEsVp9qwvuym1xlKnWj5pTgG7fWy3rV9ZDQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 28 Apr 2024 23:30:51 +0200 Message-ID: <20240428213052.3800493-4-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240428213052.3800493-1-michael@niedermayer.cc> References: <20240428213052.3800493-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 4/5] avcodec/amrwbdec: assert mode to be valid in decode_fixed_vector() 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: Inspired-by: CID1473499 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/amrwbdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/amrwbdec.c b/libavcodec/amrwbdec.c index 9d75b972fa7..21a730b835d 100644 --- a/libavcodec/amrwbdec.c +++ b/libavcodec/amrwbdec.c @@ -26,6 +26,7 @@ #include "config.h" +#include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/lfg.h" @@ -554,6 +555,8 @@ static void decode_fixed_vector(float *fixed_vector, const uint16_t *pulse_hi, decode_6p_track(sig_pos[i], (int) pulse_lo[i] + ((int) pulse_hi[i] << 11), 4, 1); break; + default: + av_assert2(0); } memset(fixed_vector, 0, sizeof(float) * AMRWB_SFR_SIZE); -- 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".