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 A45784819B for ; Tue, 12 Dec 2023 00:15:34 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AA93D68D21C; Tue, 12 Dec 2023 02:15:31 +0200 (EET) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5289D68D155 for ; Tue, 12 Dec 2023 02:15:25 +0200 (EET) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-333630e9e43so5203530f8f.2 for ; Mon, 11 Dec 2023 16:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702340124; x=1702944924; darn=ffmpeg.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=bPrcU4UdDHx1LHi2q3BFxkLfdA3R+B9/YyiwjhwKqQ8=; b=kgVdxA4xIAgWQx9Dg6CT+vOpR0aDg13mnbDFCEUPBNDLUr//FEDmpzBHTczSfjN2jE 3oB0rmeSN6TeZ3hslm36+5Z7HnCW2Z8T1ZFU6kR91RIL1y3PItuzJ4/57P0S7R3L4sGV cT1bqiEALXDVHtQKo+04GF+QJeE6QCLW4dOF67o5u0ZZlxYwX4/jNzfXBCi6BUHfvhab ctCLH5eKmLjsXVNzS5EE8m1w2cGjGfPnqNYe0XAQwBZrQWdmGvImvX6bHkp6fqsXXWry oAIjfNOEXwCENI99bYDHUJguV5STcpHPGlEaFyzlFnQZP2GksxeU4Uzd7DntkSbGNomU vk9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702340124; x=1702944924; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bPrcU4UdDHx1LHi2q3BFxkLfdA3R+B9/YyiwjhwKqQ8=; b=PXVNL+btHfvKdcFfXzKUWx55d7c1KH7cO67Ho+7ey2Kku9PCyMCZjPmEwV/zSA/Ken AXgHC9eRsX9ueO0CgEG2Wp7oKIun7jITtUlSXHG3ZONp++IQKw/+S5axNyq2RQkPDzo+ jeQzBlGnUYjOeMNejfs92VWFDeX3r1gfHGSHlnKI5RDKtxzQsx2AXGPkPKf0AJDhB8wN /wOH5ySgigpsfbpuPg4UcK8WsZMkDkuVTDRf8dEKpw6HG9h7+olOOVvk3lKi/wU9UhIN f/4juAZGmmr7LpN231ZK7/KtYHhkIbv40PyN+T/ttnLUJDPwSqxAkasr5ayHKU7xUcax lMMg== X-Gm-Message-State: AOJu0YypqfiqNSJ2/IRWh+zQv/dz3d7XG6qI9eSBvyj/vaisIDZxEfuv OrD1DtN/2LOkcDdue4oDrY/QY+F49BE= X-Google-Smtp-Source: AGHT+IGx67kNhAXU70dMMCT/yZZ8rpwEljkx7MFga2aGJOsW9JaDaL/7pTLYHE1Gd5CeUJNn+9RDZA== X-Received: by 2002:a5d:4dd2:0:b0:32d:9a20:c9e0 with SMTP id f18-20020a5d4dd2000000b0032d9a20c9e0mr1618650wru.61.1702340124164; Mon, 11 Dec 2023 16:15:24 -0800 (PST) Received: from mariano (dynamic-adsl-84-220-189-10.clienti.tiscali.it. [84.220.189.10]) by smtp.gmail.com with ESMTPSA id k3-20020adfe8c3000000b003334460e256sm9574909wrn.92.2023.12.11.16.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 16:15:23 -0800 (PST) Received: by mariano (Postfix, from userid 1000) id 8726ABFCDA; Tue, 12 Dec 2023 01:15:22 +0100 (CET) Date: Tue, 12 Dec 2023 01:15:22 +0100 From: Stefano Sabatini To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches , Marth64 References: <20231210030512.866830-1-marth64@proxyid.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231210030512.866830-1-marth64@proxyid.net> User-Agent: Mutt/2.1.4 (2021-12-11) Subject: Re: [FFmpeg-devel] [PATCH] avformat/options_table, doc/formats: clarify meaning of igndts as per definition in avformat.h 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 Cc: Marth64 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On date Saturday 2023-12-09 21:05:13 -0600, Marth64 wrote: > This confused me for a long time, hopefully this is helpful to others. > The definition in avformat.h says "Ignore DTS on frames that contain both DTS & PTS" > > Signed-off-by: Marth64 > --- > doc/formats.texi | 2 +- > libavformat/options_table.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/doc/formats.texi b/doc/formats.texi > index 640b23b790..2ebcef50c0 100644 > --- a/doc/formats.texi > +++ b/doc/formats.texi > @@ -46,7 +46,7 @@ Enable fast, but inaccurate seeks for some formats. > @item genpts > Generate missing PTS if DTS is present. > @item igndts > -Ignore DTS if PTS is set. Inert when nofillin is set. > +Ignore DTS if PTS is also set. Inert when nofillin is set. This can be expanded a bit, my take: Ignore DTS if PTS is also set. In case the PTS is set, the DTS value is set to NOPTS. This is ignored when the @code{nofillin} flag is set. > @item ignidx > Ignore index. > @item nobuffer > diff --git a/libavformat/options_table.h b/libavformat/options_table.h > index 91708de453..4ee3fc1d81 100644 > --- a/libavformat/options_table.h > +++ b/libavformat/options_table.h > @@ -45,7 +45,7 @@ static const AVOption avformat_options[] = { > {"genpts", "generate pts", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_GENPTS }, INT_MIN, INT_MAX, D, "fflags"}, > {"nofillin", "do not fill in missing values that can be exactly calculated", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_NOFILLIN }, INT_MIN, INT_MAX, D, "fflags"}, > {"noparse", "disable AVParsers, this needs nofillin too", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_NOPARSE }, INT_MIN, INT_MAX, D, "fflags"}, > -{"igndts", "ignore dts", 0, AV_OPT_TYPE_CONST, {.i64 = AVFMT_FLAG_IGNDTS }, INT_MIN, INT_MAX, D, "fflags"}, > +{"igndts", "ignore dts (if pts is also set)", 0, AV_OPT_TYPE_CONST, > {.i64 = AVFMT_FLAG_IGNDTS }, INT_MIN, INT_MAX, D, "fflags"}, set DTS to NOPTS value in case PTS is set ? _______________________________________________ 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".