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 C41994C00B for ; Sun, 6 Jul 2025 01:32:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 4F48B690EA0; Sun, 6 Jul 2025 04:32:40 +0300 (EEST) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 1D653690CFB for ; Sun, 6 Jul 2025 04:32:32 +0300 (EEST) Received: from 279abb41e7d1103f570d59b31002759c ([1.136.104.214]) (authenticated (0 bits)) by mx.sdf.org (8.18.1/8.14.3) with ESMTPSA id 5661WMM5018348 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sun, 6 Jul 2025 01:32:29 GMT Date: Sun, 6 Jul 2025 11:32:20 +1000 From: Peter Ross To: ffmpeg-devel@ffmpeg.org Message-ID: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] 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="===============8917631418398694308==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8917631418398694308== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ftj8KaDNRjhaRxUB" Content-Disposition: inline --ftj8KaDNRjhaRxUB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Fixes CID1655273 and CID1655274. --- libavcodec/adpcm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 92ab248f3d..527384b86d 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -877,6 +877,9 @@ 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_assert0(0); /* never reach here when bits is 3-bit */ + return 0; } =20 if (sign) @@ -934,6 +937,9 @@ 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_assert0(0); /* never reach here when bits is 4-bit */ + return 0; } =20 if (sign) --=20 2.47.2 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --ftj8KaDNRjhaRxUB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCaGnSHgAKCRBnYHnFrEDd a2dWAKC9nnLle82vpZYTxsGO2o51NMgqLQCfc5St/VCcNKxbMo7Qgj5U0ewoIj8= =ITIF -----END PGP SIGNATURE----- --ftj8KaDNRjhaRxUB-- --===============8917631418398694308== 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". --===============8917631418398694308==--