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 DDC5D4C06B for ; Tue, 2 Sep 2025 07:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1756799895; 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=spCP+omhO51ePAH6oupYM9le9Xfd/yWXyuN3YCVg/+Q=; b=wc25q24Wp4L+ZGpeM9dwATKhy2HEin7YY9mQcY7BC4tTJ6XJFNO5n74VvO6yiPqTwYjUo Rbjugfg8W1CaEoeWE89CS1Hoo1XwspBrbPlJzphA5A3lpngkgn3IPti4k4d8UsUbKSkrX/j WNqmCakFZ/MVwUn98Syp1EJK1YKn75ZCDcp7skW+e11ZGP0o1WCjeVmOkfY522iKd7rv7Wg Wpi7OD4TW1gqUNZtHIm0PYgWcVSse0XXEhQ/DFNK5v+s5yZVkR+tHp0gBFUNKIm/DK+aKFg sB7ZpowY7LpAREucTHpPDuMrbzlwyFddPepFWpzxLKB8TKOVFCaCEw2/JenA== Received: from [172.19.0.4] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id C4F7668E7AD; Tue, 2 Sep 2025 10:58:15 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1756799881; b=fueysrABOVm3EgKPPzrhpAxikXSN6lghg588amsz1gyu6V3Rb1fUhbAWCUK7W8pjgGl/r 37hTiskxqoI0CqczkWQ3jbb6WUf12DqT0yDLY6IcKKsNJplf0c42hXr8zOxGdGCDrVjPws0 NLo8AN7qa7HC35xf4OZg4RNjtSaZvaXQo7m5l4Dj8Hw7tdylBZX0jNyTeAo1faOJliGjBCk lQmhaYI2Eo62cgiP4yJBlSNXZfPekBbwLCX9Y9T4rVTCSSyRn0olNEugoAa2LW4RH328dVI UYwf8YHxkpbT01LycdQu4WJEajJjK1TEM9ui6N8ilIvsOajC3oHsSMx3FWfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1756799881; 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=I6fZQYYefqmSvc/fiPHhlXrOSf3V71iDB8MOEOto78w=; b=SiqFZJxH26FW6jorblPRq+/7WcjHTU/4pMWqA3BLoBJINjVsRoMnQM7T2SocLIXZa24fw 4MHaYhwSFQO29sIFfd6U//PqH+ZldjyC4E0BifjV2JuT/1CJGIEGKQQJeLElMS9PcRdBAbX VWQkvXv7GX4ii0M12BXPoQ7u8wRQjwoKbyXHzMg5CHrPeFXqj2NP6JWq5uiEj6W9sPo5Vl0 7so+0FGILSwSJHp5IdoizB2Jw4IarfVgKgACGZmgUaTIJEeljan+VjmijSztYhaz4gnSSl+ bp3xBEFu4Jx3uYJ6/30Sf7NzfE7JaEqxOr6BPTb3Bb3yI67jDMdr31Vs42pw== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=fail; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=fail; arc=none (Message is not ARC signed); dmarc=none Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id D468468D5F6 for ; Tue, 2 Sep 2025 10:57:47 +0300 (EEST) Received: from 436df3412bf9621d289a69bf8f875853 ([1.145.177.128]) (authenticated (0 bits)) by mx.sdf.org (8.18.1/8.14.3) with ESMTPSA id 5827vbl9016000 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Tue, 2 Sep 2025 07:57:44 GMT Date: Tue, 2 Sep 2025 17:57:36 +1000 To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: MIME-Version: 1.0 In-Reply-To: Message-ID-Hash: LSOTVU3AVUCFKG5OKYPUT7YGCABTRG3W X-Message-ID-Hash: LSOTVU3AVUCFKG5OKYPUT7YGCABTRG3W X-MailFrom: SRS0=w72i=3N=xvid.org=pross@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: Can a GetByteContext have a "sub" context? 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: Peter Ross via ffmpeg-devel Cc: Peter Ross Content-Type: multipart/mixed; boundary="===============1535856543281484757==" Archived-At: List-Archive: List-Post: --===============1535856543281484757== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NUQX83wWTl1HOrND" Content-Disposition: inline --NUQX83wWTl1HOrND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 02, 2025 at 08:03:14AM +0200, Manuel Lauss via ffmpeg-devel wro= te: > Hello, >=20 > Is it possible to have a "sub" context with a limited byte range for a > super-context? > i.e. I read 4 bytes from context c1, these are a length, c2 =3D > GetByteContext_from(c1, len) ? Or is "GetByteContext(&c2, c1.buffer, > len);" enough? second one is what I do: bytestream2_init(&c2, c1.buffer, len) also need to check that that len does not exceed c1 bytes remaining. use by= testream2_get_bytes_left(c1). -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --NUQX83wWTl1HOrND Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCaLajbAAKCRBnYHnFrEDd a+X5AKCWBx6ZrNkbOHWVzOiTxCqwvJgJCwCghfMcXXqQ1r84pcU9FiZSfyaZuiI= =V1j3 -----END PGP SIGNATURE----- --NUQX83wWTl1HOrND-- --===============1535856543281484757== 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 --===============1535856543281484757==--