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 36FFA495EC for ; Thu, 15 Feb 2024 08:17:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4B19D68D22D; Thu, 15 Feb 2024 10:17:37 +0200 (EET) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C7B2468D214 for ; Thu, 15 Feb 2024 10:17:30 +0200 (EET) Received: from 869728a0df17329e597ee5994a1a1c9d ([1.145.175.42]) (authenticated (0 bits)) by mx.sdf.org (8.16.1/8.14.3) with ESMTPSA id 41F8HFnW007263 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Thu, 15 Feb 2024 08:17:27 GMT Date: Thu, 15 Feb 2024 19:17:09 +1100 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: MIME-Version: 1.0 In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH] lead: support unaligned blocks 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="===============8898952215783035340==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8898952215783035340== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="baeF366+e5HivU3E" Content-Disposition: inline --baeF366+e5HivU3E Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 12, 2023 at 11:40:26AM +1100, Peter Ross wrote: > Fixed ticket #10656. > --- > libavcodec/leaddec.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/libavcodec/leaddec.c b/libavcodec/leaddec.c > index ede52fba5a..fd2018256d 100644 > --- a/libavcodec/leaddec.c > +++ b/libavcodec/leaddec.c > @@ -192,8 +192,8 @@ static int lead_decode_frame(AVCodecContext *avctx, A= VFrame * frame, > init_get_bits8(&gb, s->bitstream_buf, size); > =20 > if (avctx->pix_fmt =3D=3D AV_PIX_FMT_YUV420P) { > - for (int mb_y =3D 0; mb_y < avctx->height / 16; mb_y++) > - for (int mb_x =3D 0; mb_x < avctx->width / 16; mb_x++) > + for (int mb_y =3D 0; mb_y < (avctx->height + 15) / 16; mb_y++) > + for (int mb_x =3D 0; mb_x < (avctx->width + 15) / 16; mb_x++) > for (int b =3D 0; b < (yuv20p_half ? 4 : 6); b++) { > int luma_block =3D yuv20p_half ? 2 : 4; > const VLCElem * dc_vlc =3D b < luma_block ? luma_dc_= vlc.table : chroma_dc_vlc.table; > @@ -225,8 +225,8 @@ static int lead_decode_frame(AVCodecContext *avctx, A= VFrame * frame, > } > } else { > for (int f =3D 0; f < fields; f++) > - for (int j =3D 0; j < avctx->height / fields / 8; j++) > - for (int i =3D 0; i < avctx->width / 8; i++) > + for (int j =3D 0; j < (avctx->height + 7) / fields / 8; j++) > + for (int i =3D 0; i < (avctx->width + 7) / 8; i++) > for (int plane =3D 0; plane < 3; plane++) { > const VLCElem * dc_vlc =3D !plane ? luma_dc_vlc.= table : chroma_dc_vlc.table; > int dc_bits =3D !plane ? LUMA_DC_BITS= : CHROMA_DC_BITS; > --=20 > 2.42.0 clearing out my patch queue. posted to ml nov 2023. will apply in a few days. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --baeF366+e5HivU3E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCZc3IgQAKCRBnYHnFrEDd a382AKC2yaJIXfqLzoAkIYsoUV/tZwgi4QCgvDt2fXq1zHkQY8ASNM5LOh0b0ck= =FhUe -----END PGP SIGNATURE----- --baeF366+e5HivU3E-- --===============8898952215783035340== 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". --===============8898952215783035340==--