From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTP id D1651498C2
	for <ffmpegdev@gitmailbox.com>; Wed, 21 Feb 2024 04:32:17 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D8F6A68D0F5;
	Wed, 21 Feb 2024 06:32:13 +0200 (EET)
Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net
 [217.70.183.198])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CA08E68D04F
 for <ffmpeg-devel@ffmpeg.org>; Wed, 21 Feb 2024 06:32:06 +0200 (EET)
Received: by mail.gandi.net (Postfix) with ESMTPSA id 279A5C0002
 for <ffmpeg-devel@ffmpeg.org>; Wed, 21 Feb 2024 04:32:05 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc;
 s=gm1; t=1708489926;
 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=P87vRABVYa39gNDMIWQVd4BXo/3Le8gslffoOgAjZHo=;
 b=mkOvQzIBCQLqQABOAfRasgwdT1jg1JJKbcO+aewPyypLGig8NwMHCsPHz2Xx54zrVD7080
 XnP3L+agczkoR9bM0RwGBl9tpZdPFqjk2X8BZGgTvXZ2dnHLGM+FhrnrXBjRslsFYUNTyL
 c1tKUpzaKFRVtU6LCf/Z6iCSSuVKY5PhNQPK50y49p+wxhieaql4An+Q3HyLdlhTJayKtx
 36SBRHPC3itt8rvgNb0lfqMNM0kMbdS3ADlRyOxgkphOFfFhKYjNPNXEBfmNP6To55vB7c
 YnP4imydGrDDq6Dm6DbuJZpy/TcUz3vwEP5jpoLBUhJvHidzRaLAtBDqTgaFDg==
Date: Wed, 21 Feb 2024 05:32:05 +0100
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Message-ID: <20240221043205.GY6420@pb2>
References: <20240220163302.1943993-1-nicolas.gaullier@cji.paris>
 <20240220163302.1943993-2-nicolas.gaullier@cji.paris>
MIME-Version: 1.0
In-Reply-To: <20240220163302.1943993-2-nicolas.gaullier@cji.paris>
X-GND-Sasl: michael@niedermayer.cc
Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/parser: fix fetch_timestamp
 in a scenario with unaligned packets
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: multipart/mixed; boundary="===============1333264944304393477=="
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20240221043205.GY6420@pb2/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>


--===============1333264944304393477==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="QPxs4T3yWtFUlHKi"
Content-Disposition: inline


--QPxs4T3yWtFUlHKi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Feb 20, 2024 at 05:33:01PM +0100, Nicolas Gaullier wrote:
> Fix fetch_timestamp when the frame start is in a previous packet.
>=20
> Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris>
> ---
>  libavcodec/parser.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

This change looses pts

--- /tmp/old	2024-02-21 05:21:13.201646780 +0100
+++ /tmp/new	2024-02-21 05:20:52.205417887 +0100
@@ -1,174 +1,172 @@
 [mpegts  read_frame_internal stream=3D2, pts=3D310332330, dts=3D310332330,=
 size=3D49072, duration=3D0, flags=3D0
-[mpegts  read_frame_internal stream=3D2, pts=3D310348800, dts=3D310348800,=
 size=3D16516, duration=3D0, flags=3D0
-[mpegts  read_frame_internal stream=3D2, pts=3D310356000, dts=3D310356000,=
 size=3D16876, duration=3D0, flags=3D0
-[mpegts  read_frame_internal stream=3D2, pts=3D310366800, dts=3D310366800,=
 size=3D51652, duration=3D0, flags=3D0
-[mpegts  read_frame_internal stream=3D2, pts=3D310363200, dts=3DNOPTS, siz=
e=3D15588, duration=3D0, flags=3D0
-[mpegts  read_frame_internal stream=3D2, pts=3D310370400, dts=3DNOPTS, siz=
e=3D21476, duration=3D0, flags=3D0
-[mpegts  read_frame_internal stream=3D2, pts=3D310402800, dts=3DNOPTS, siz=
e=3D276868, duration=3D3600, flags=3D1
-[mpegts  read_frame_internal stream=3D2, pts=3D310388400, dts=3DNOPTS, siz=
e=3D85884, duration=3D3600, flags=3D0
-[mpegts  read_frame_internal stream=3D2, pts=3D310381200, dts=3DNOPTS, siz=
e=3D45761, duration=3D3600, flags=3D0
+[mpegts  read_frame_internal stream=3D2, pts=3DNOPTS, dts=3DNOPTS, size=3D=
16516, duration=3D0, flags=3D0
+[mpegts  read_frame_internal stream=3D2, pts=3D310348800, dts=3D310348800,=
 size=3D16876, duration=3D0, flags=3D0
+[mpegts  read_frame_internal stream=3D2, pts=3D310356000, dts=3D310356000,=
 size=3D51652, duration=3D0, flags=3D0
+[mpegts  read_frame_internal stream=3D2, pts=3D310366800, dts=3D310366800,=
 size=3D15588, duration=3D0, flags=3D0
+[mpegts  read_frame_internal stream=3D2, pts=3D310363200, dts=3DNOPTS, siz=
e=3D21476, duration=3D0, flags=3D0
+[mpegts  read_frame_internal stream=3D2, pts=3D310370400, dts=3DNOPTS, siz=
e=3D276868, duration=3D3600, flags=3D1
+[mpegts  read_frame_internal stream=3D2, pts=3DNOPTS, dts=3DNOPTS, size=3D=
85884, duration=3D3600, flags=3D0
+[mpegts  read_frame_internal stream=3D2, pts=3D310388400, dts=3DNOPTS, siz=
e=3D45761, duration=3D3600, flags=3D0


[...]
--=20
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"You are 36 times more likely to die in a bathtub than at the hands of a
terrorist. Also, you are 2.5 times more likely to become a president and
2 times more likely to become an astronaut, than to die in a terrorist
attack." -- Thoughty2


--QPxs4T3yWtFUlHKi
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZdV8ugAKCRBhHseHBAsP
q3wcAJ9AFmRbK0wS9VsjP7mEVAzys3q9XACglzytYzDLq5iCumjvqUXNOIj983k=
=EeSL
-----END PGP SIGNATURE-----

--QPxs4T3yWtFUlHKi--

--===============1333264944304393477==
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".

--===============1333264944304393477==--