From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id A0081500FB for ; Tue, 8 Jul 2025 08:49:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id E1DAB68EE4B; Tue, 8 Jul 2025 11:49:27 +0300 (EEST) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 58E0268EDF5 for ; Tue, 8 Jul 2025 11:49:21 +0300 (EEST) Received: from 436df3412bf9621d289a69bf8f875853 ([1.136.104.214]) (authenticated (0 bits)) by mx.sdf.org (8.18.1/8.14.3) with ESMTPSA id 5688n9Cp007889 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Tue, 8 Jul 2025 08:49:16 GMT Date: Tue, 8 Jul 2025 18:49:08 +1000 From: Peter Ross To: ffmpeg-devel@ffmpeg.org Message-ID: <3b06ac6e75c04d1cd160c91902aab8901f5c7dda.1751964469.git.pross@xvid.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCHv2] avcodec/adpcm: squelch uninitialized variable warnings 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: multipart/mixed; boundary="===============4406340979671881120==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4406340979671881120== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zLh6qSqS5bXeS4eD" Content-Disposition: inline --zLh6qSqS5bXeS4eD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Fixes CID1655273 and CID1655274. --- v2: Use the new av_unreachable() macro libavcodec/adpcm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 92ab248f3d..83ef7c780a 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -877,6 +877,8 @@ static int adpcm_sanyo_expand3(ADPCMChannelStatus *c, i= nt bits) add =3D (11 * c->step) >> 1; c->step =3D 3 * c->step; break; + default: + av_unreachable("There are cases for all control paths when bits is= 3-bit"); } =20 if (sign) @@ -934,6 +936,8 @@ static int adpcm_sanyo_expand4(ADPCMChannelStatus *c, i= nt bits) add =3D (25 * c->step) >> 1; c->step =3D 5 * c->step; break; + default: + av_unreachable("There are cases for all control paths when bits is= 4-bit"); } =20 if (sign) --=20 2.47.2 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --zLh6qSqS5bXeS4eD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCaGzbgAAKCRBnYHnFrEDd awELAJ9Wygp7ZWXH56xtms5yTHzoojxMbwCePG82UVrRNz9tVrML2rJ652/aqD0= =nOWz -----END PGP SIGNATURE----- --zLh6qSqS5bXeS4eD-- --===============4406340979671881120== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============4406340979671881120==--