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 40B5849C41 for ; Tue, 5 Mar 2024 14:59:55 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4AC7468D03D; Tue, 5 Mar 2024 16:59:53 +0200 (EET) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CBD8A68D014 for ; Tue, 5 Mar 2024 16:59:46 +0200 (EET) Authentication-Results: mail0.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=EqF1wHmE; dkim-atps=neutral Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 89B9724048D; Tue, 5 Mar 2024 15:59:46 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id BRpfcosaIGbL; Tue, 5 Mar 2024 15:59:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1709650785; bh=BQESzBoLVwrLl50IOZQbMaP/niMOQcBHfzivXTb+ZF4=; h=Subject:From:To:Cc:In-Reply-To:References:Date:From; b=EqF1wHmE1P+sn+82/ewEP6t+gjcYkgVcyHeGx+r++htbE6iXVxtEodQr2e3ZbCuf5 Z7INZpCQBQo/wyfRSUK5dMquA69WLKYtIxwDpHNGutvyrOnU6mTyFPXBqbIyVrc/Qp Suar1y5rvZUG0mPjjzz73WVRb4d07kCFfSJQ4YKM0A6qsy7VTqajGZ7Vy2trujyr9L yWPy4M2hGfpWwKJQclWR52k49C61i65IcP/hS3eF/W3YetC3K18RyMujRAbI0xnMx3 SYa6Z71RahSOgLrutL4kFsBLouSBZe/VuycfvyGGxaZxf3akBtb44xblINhb2oB7nk sfK5FzDhqooXA== Received: from lain.khirnov.net (lain.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id E75E2240177; Tue, 5 Mar 2024 15:59:45 +0100 (CET) Received: by lain.khirnov.net (Postfix, from userid 1000) id C76C51601B9; Tue, 5 Mar 2024 15:59:45 +0100 (CET) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: <20240305120751.2025216-2-nicolas.gaullier@cji.paris> References: <20240305120751.2025216-1-nicolas.gaullier@cji.paris> <20240305120751.2025216-2-nicolas.gaullier@cji.paris> Mail-Followup-To: FFmpeg development discussions and patches , Nicolas Gaullier Date: Tue, 05 Mar 2024 15:59:45 +0100 Message-ID: <170965078578.29002.11479096985564363199@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH v2 1/1] avformat/demux: Add durationprobesize AVOption 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: Nicolas Gaullier 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: Quoting Nicolas Gaullier (2024-03-05 13:07:51) > diff --git a/doc/APIchanges b/doc/APIchanges > index 7d46ebb006..548c91effe 100644 > --- a/doc/APIchanges > +++ b/doc/APIchanges > @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 > > API changes, most recent first: > > +2024-03-05 - xxxxxxxxxx - lavf 60.23.100 - options_table.h > + Add AVOption durationprobesize This is wrong: * options_table.h is not a public header, so it has no meaning for API users * the main thing that should be mentioned is the AVFormatContext field, we usually do not mention avoptions here > + > 2024-02-28 - xxxxxxxxxx - swr 4.14.100 - swresample.h > swr_convert() now accepts arrays of const pointers (to input and output). > > diff --git a/doc/formats.texi b/doc/formats.texi > index 69fc1457a4..b9feef5d15 100644 > --- a/doc/formats.texi > +++ b/doc/formats.texi > @@ -228,6 +228,19 @@ would require too many resources due to a large number of streams. > Skip estimation of input duration when calculated using PTS. > At present, applicable for MPEG-PS and MPEG-TS. > > +@item durationprobesize @var{integer} (@emph{input}) > +Set probing size in bytes for estimating durations when calculated using PTS. I don't understand what 'calculated using PTS' is supposed to mean. > diff --git a/libavformat/avformat.h b/libavformat/avformat.h > index f4506f4cf1..7b714f3c65 100644 > --- a/libavformat/avformat.h > +++ b/libavformat/avformat.h > @@ -1994,6 +1994,15 @@ typedef struct AVFormatContext { > * Freed by libavformat in avformat_free_context(). > */ > AVStreamGroup **stream_groups; > + > + /** > + * Maximum number of bytes read from input in order to determine stream durations > + * when using estimate_timings_from_pts in avformat_find_stream_info(). > + * > + * - encoding: unused > + * - decoding: set by user > + */ > + int64_t duration_probesize; Presumably 0 means some special behaviour? The documentation should say so. -- Anton Khirnov _______________________________________________ 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".