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 08F2D44B5C for ; Mon, 14 Jul 2025 18:52:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id EFB5168EE0B; Mon, 14 Jul 2025 21:52:37 +0300 (EEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 215BE68EDEA for ; Mon, 14 Jul 2025 21:52:32 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 313FC1FD3D for ; Mon, 14 Jul 2025 18:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1752519151; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kw44eGa6BfSm6wkhgsYtmkMSfch0RjFTSd4zS6BPvX8=; b=j0egO6CphqAz3j9hMaKuFuy0bnMTL1uAw/etSWPVg3pnEYtcgfFxFwbcYdR39DIgJZaTVk B69QrrKuIaAnqJY2d1FMeFaJ0dnjoD3B7U1Iz5Xj5bYKqpsOX0ECtNE9K6Of9pitwU4+Hq HBdRVI5bbRxLpNkD4X7Vf48oLlufBJagIAzfgRY7TewXAAeJsgA0sch9noHdtdFLMlWUZE z9pYEZvSDY79JT4k80+BiIrOl86Xjj7m4/C8a473nVmiXwO1g4rsOgLksLwRufyMAn6+W4 YvJ6K6JF3pV5dA4slSA2MfM/cKUhAUapL7X1YmUYmFbQAAwQdUryQBaN1EuN1g== Date: Mon, 14 Jul 2025 20:52:30 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250714185230.GJ29660@pb2> References: <20250713011030.1156550-1-michael@niedermayer.cc> <20250713011030.1156550-4-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdehvdejudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnheptefggedvffeiueffvefhiedtgfefjedukeefgeetgeevgeejgeekvdevjeelveeknecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 4/5] avcodec/mpegvideo_dec: Fix lowres=3 field select interlaced mpeg4 frame 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="===============9056745606618412862==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============9056745606618412862== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0mItn4v0TJeTPmzB" Content-Disposition: inline --0mItn4v0TJeTPmzB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 13, 2025 at 07:34:50PM +0200, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: out of array read in the chroma plane > > Fixes: 428034092/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG= 4_DEC_fuzzer-5582608941776896.test > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/mpegvideo_dec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c > > index 4a54f6cd614..85e24c667e3 100644 > > --- a/libavcodec/mpegvideo_dec.c > > +++ b/libavcodec/mpegvideo_dec.c > > @@ -557,7 +557,7 @@ static av_always_inline void mpeg_motion_lowres(Mpe= gEncContext *s, > > ptr_cr =3D ref_picture[2] + uvsrc_y * uvlinesize + uvsrc_x; > > =20 > > if ((unsigned) src_x > FFMAX( h_edge_pos - (!!sx) - 2 * block_s, = 0) || uvsrc_y<0 || > > - (unsigned) src_y > FFMAX((v_edge_pos >> field_based) - (!!sy) = - FFMAX(h, hc<chroma_y_shift), 0)) { > > + (unsigned) src_y > FFMAX((v_edge_pos >> field_based) - (!!sy) = - FFMAX(h, field_select + hc<chroma_y_shift), 0)) { > > s->vdsp.emulated_edge_mc(s->sc.edge_emu_buffer, ptr_y, > > linesize >> field_based, linesize >> = field_based, > > 17, 17 + field_based, >=20 > Is lowres actually used for mpegvideo-decoders at all (in 2025)? why not ? Example: making thumbnails of videos. If a video can be decoded in 2min instead of 3min that still allows to scan it sooner for potential thumbnails thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB You can kill me, but you cannot change the truth. --0mItn4v0TJeTPmzB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaHVR6gAKCRBhHseHBAsP q2FoAJwPRssqUhUr+ArqH/l/pWMHhoQfcgCff5U8+o9cWMx1WCAls1KbLLr7Yyg= =Pn4L -----END PGP SIGNATURE----- --0mItn4v0TJeTPmzB-- --===============9056745606618412862== 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". --===============9056745606618412862==--