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 E667E4F72D for ; Sun, 22 Jun 2025 04:33:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 2194F68CBC2; Sun, 22 Jun 2025 07:33:28 +0300 (EEST) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id B1AC468C83F for ; Sun, 22 Jun 2025 07:33:21 +0300 (EEST) Received: from 8ff98ca2d8180b40766b96ab5fcc753a ([1.136.108.149]) (authenticated (0 bits)) by mx.sdf.org (8.18.1/8.14.3) with ESMTPSA id 55M4XCHG009503 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sun, 22 Jun 2025 04:33:17 GMT Date: Sun, 22 Jun 2025 14:33:10 +1000 From: Peter Ross To: ffmpeg-devel@ffmpeg.org Message-ID: <4cf47707d29878f27286220f42481f8651f8ed50.1750566661.git.pross@xvid.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/rv60dec: drop unused sum variable in read_slice_sizes 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="===============5109365833702240027==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============5109365833702240027== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PIQTFLK8r6Ur48Jt" Content-Disposition: inline --PIQTFLK8r6Ur48Jt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable --- libavcodec/rv60dec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/rv60dec.c b/libavcodec/rv60dec.c index 2bbcb1d620..6075598861 100644 --- a/libavcodec/rv60dec.c +++ b/libavcodec/rv60dec.c @@ -390,14 +390,14 @@ static int read_frame_header(RV60Context *s, GetBitCo= ntext *gb, int * width, int static int read_slice_sizes(RV60Context *s, GetBitContext *gb) { int nbits =3D get_bits(gb, 5) + 1; - int last_size, sum =3D 0; + int last_size; =20 for (int i =3D 0; i < s->cu_height; i++) s->slice[i].sign =3D get_bits1(gb); =20 - s->slice[0].size =3D last_size =3D sum =3D get_bits_long(gb, nbits); + s->slice[0].size =3D last_size =3D get_bits_long(gb, nbits); =20 - if (sum < 0) + if (last_size < 0) return AVERROR_INVALIDDATA; =20 for (int i =3D 1; i < s->cu_height; i++) { @@ -409,7 +409,6 @@ static int read_slice_sizes(RV60Context *s, GetBitConte= xt *gb) if (last_size <=3D 0) return AVERROR_INVALIDDATA; s->slice[i].size =3D last_size; - sum +=3D s->slice[i].size; } =20 align_get_bits(gb); --=20 2.47.2 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --PIQTFLK8r6Ur48Jt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCaFeHgwAKCRBnYHnFrEDd a4FjAJ0UhrnRaZVZO556iKSyX96Y5QXJIQCfbc/VdRfdSWkfmNwxnfpRGag7yoQ= =pErZ -----END PGP SIGNATURE----- --PIQTFLK8r6Ur48Jt-- --===============5109365833702240027== 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". --===============5109365833702240027==--