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 3AA424C347 for ; Wed, 10 Dec 2025 01:08:26 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'VTV8TdaPHDUYgdUhg75RlnDkmrkL9btNepNoft+PePE=', expected b'CaYx0pSAQXO/6qekbSM3ATaQ7W5ZortcXvCGkpasOUM=')) header.d=niedermayer.cc header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1765328896; h=date : to : message-id : references : mime-version : in-reply-to : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : from; bh=uUaNLxW168JKGAn7JtrbWlO95AErP5X+nPw5iMgr338=; b=Cj1sEIIcYWMdM0NrhXkBWSbP3SeW1xLp/HXcu+TG9uXSTsAUzXB0Ar20L5rsNspcSB2/v o6XZJ2njyGPqiW02d8B9uGy7eNiuZizddICKlqcxs2KziXt5iVYsVt57iD3Rkcs0RE9t9n3 bh/Y+qw+6yJOsRwcdas0fBkpbxMvxTloNjLjFfTSlXDgp03qn89fietRMPTv6d920hAuXrU 0ZG57XKQMsu9PkZgKOELXd++yy49qVwHSPA/MKflZKTJVCGw7CkCP4nVqqF0gvWNhFKuluK 2gXOSuPsEL7cYzSUGsfTdAC/njcGMfzhSixKC8poiIKgSqBl2HjFbG1sU8Pg== Received: from [172.19.0.3] (unknown [172.19.0.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 225F469072B; Wed, 10 Dec 2025 03:08:16 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1765328879; b=QgQBPeVm2rrpSHHnEA1mJiA8ZpCBniZ/4mEZQXyiBSJc9jnA72L61soUmMErEDkV6mLRt pmBQ4WNAuvgNdH6AOPlzroU8DRyKaXlVqaOhqVifTWB7mqN8rywJdmgTT/PJ9WCUCjuJFDd o86z1X6PoBBUgIhL9gh/RXFBvUjc0MqRSIdARbdkfW0AncPTh4RHFfjiW7nyJsEhLiQfjkf H3bgkGU6hHSeVwBl6rtdy2mVG/iDC7TedN2whYR72Iy5AEvUsHLwRB238CWL3yi7FGu0mQx wWwnQNVubdKu4HhJd9G06UKi+hMUH4d9OLutfI+FspH4hcYAzCcb6+wU8epw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1765328879; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=VTV8TdaPHDUYgdUhg75RlnDkmrkL9btNepNoft+PePE=; b=KlcIiuUnC5V5Ldj2mfeqGz5GvjJzfeYzT7IkmwsIH+x5cxxFwjPN/nfBd5xEgs7GqdT4W vflCYm0yKrSjC3zDkNdc91GYa+H2c1zuXgnvAErLpqbfFhZEBI3Z4jyZm8yIwvPA4ppLBtJ U6rai2vHCzqnAGjkCv/j77ClxlIOZdIP7IQ5OhgTwzpITdjpYc6tE5JFzG3Cnk/MPR2tGdZ N2+QL+h5KLRtXd8pTX52sZb1zgTu2CnywrEpbm42d4EBbjluz4dkrCP7Xk6SOODmY975MMZ vfWQHqMx+slFCY8j1+pAxDjHeAsgf6c3mAkEkH3+ZYWPhtbSEIXY2N9njquA== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none (Message is not ARC signed); dmarc=none 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 6987969065F for ; Wed, 10 Dec 2025 03:07:45 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 95ED51F47A for ; Wed, 10 Dec 2025 01:07:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1765328864; 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=CaYx0pSAQXO/6qekbSM3ATaQ7W5ZortcXvCGkpasOUM=; b=Hp7zWEb+5WlogYCdYOBrX4qVx7CPv258OHvXPshpEwqz8Ua3vDg+vQ9ePf9a1iZyBaZum7 /TA0yepIbXwfoX6JopLA3Lod7T8iV8HUV50jTdPA1cji5MEuCW+jU0kwuWaz8az0JXUkfx FyfkcZAKEp95PqnmkEy7pmpcgQtOhaqpY29a01lBY2swW3yXFAze+bbye5LOqN2K0exf1m cviJFoi2qntcz3JkBinlKf/iUX3qOAQCkGNKOFY3ta7z9QYmcmkFQ/5tm7ojGyvFJnPBR6 ApyyYDCGXyMXNwkBcEDwTH2pIkwAG9JjFy0+ZjcrVfMjAnLT0H5nVkURLQyzmQ== Date: Wed, 10 Dec 2025 02:07:43 +0100 To: FFmpeg development discussions and patches Message-ID: References: <20251209175740.108511-1-haydenm315@gmail.com> MIME-Version: 1.0 In-Reply-To: <20251209175740.108511-1-haydenm315@gmail.com> X-GND-Sasl: michael@niedermayer.cc X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvuddtjecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecu fedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhi vgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrf grthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfev necukfhppeeguddrieeirdeiiedrhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hinhgvthepgedurdeiiedrieeirdehtddphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhho mhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhqihgupeelhefgffehudfhgeejte dpmhhouggvpehsmhhtphhouhhtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghg qdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-State: clean X-GND-Score: -85 Message-ID-Hash: FYVET5XXB6OPWYRGOIWFJKYNMYFYA5R6 X-Message-ID-Hash: FYVET5XXB6OPWYRGOIWFJKYNMYFYA5R6 X-MailFrom: SRS0=p/EU=6Q=niedermayer.cc=michael@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] Re: [PATCH] libavformat/rtpdec_jpeg.c: Allow sender to include the qtable in fragment offset calculation List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Niedermayer via ffmpeg-devel Cc: Michael Niedermayer Content-Type: multipart/mixed; boundary="===============2453176017749478025==" Archived-At: List-Archive: List-Post: --===============2453176017749478025== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JpMpcza+Y26HCZTh" Content-Disposition: inline --JpMpcza+Y26HCZTh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hayden On Tue, Dec 09, 2025 at 12:57:40PM -0500, Hayden Myers via ffmpeg-devel wro= te: > Signed-off-by: Hayden Myers > --- > libavformat/rtpdec_jpeg.c | 22 +++++++++++++++++++--- > 1 file changed, 19 insertions(+), 3 deletions(-) >=20 > diff --git a/libavformat/rtpdec_jpeg.c b/libavformat/rtpdec_jpeg.c > index 4d9ee0d754..871f3a732e 100644 > --- a/libavformat/rtpdec_jpeg.c > +++ b/libavformat/rtpdec_jpeg.c > @@ -353,9 +353,25 @@ static int jpeg_parse_packet(AVFormatContext *ctx, P= ayloadContext *jpeg, > } > =20 > if (off !=3D avio_tell(jpeg->frame) - jpeg->hdr_size) { > - av_log(ctx, AV_LOG_ERROR, > - "Missing packets; dropping frame.\n"); > - return AVERROR(EAGAIN); > + /* The fragment offset may include the quant table data. Allow t= he > + * offset to differ by the size of the quant header and table. > + */ > + > + // Default to 2 * 64 byte tables for 8 bit precision. > + uint8_t qtable_len =3D 128; exact length is not needed here, int tends to lead to fewer surprises > + > + // Use the q table len value stored in the ctx > + if (q >=3D 127 && q < 255) > + qtable_len =3D jpeg->qtables_len[q-128]; 127-128 is -1 thus results in out of array. jpeg->qtables_len[-1]; thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Democracy is the form of government in which you can choose your dictator --JpMpcza+Y26HCZTh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaTjH3AAKCRBhHseHBAsP q+jsAKCUIIImZW1bQdrTnRQJkdcLJC63HQCfb5e49EiKYnbxqrFDrVmdBq9o5G0= =ew4p -----END PGP SIGNATURE----- --JpMpcza+Y26HCZTh-- --===============2453176017749478025== 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 To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org --===============2453176017749478025==--