From patchwork Fri Dec 3 21:46:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lynne X-Patchwork-Id: 31947 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp1234363iog; Fri, 3 Dec 2021 13:46:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVubAM+zT1Rs8JJ4yIfg9ITpXUhdui5lzfy4F7eCd9kX4OBeptPNROmLPZIkZJC6mugzpo X-Received: by 2002:a05:6402:50ca:: with SMTP id h10mr29032878edb.70.1638568012536; Fri, 03 Dec 2021 13:46:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638568012; cv=none; d=google.com; s=arc-20160816; b=vG/XReV0nxVmFUM3+fIxn5z6Owy9oXXtFGMTpGfS9un9dCgbKajFoFGuM3AETsxN0w eyz6vRNkLywDbqWNEs2m3SXvG3ImNoJzhLKIVMunREwZXFTpHTCUd9D9+EUg3A+B7p/4 TsFTEAQgbNLmAYHJAWDGhU2AMTrXOLVqII6v1K2ou43o9G5P1WA09sMtyOsKFEqkGC43 yZ3n/ARlZ4nHCoM8BwBLkaZyrU3FNFoBnJq4Ic6fAbopgdd7pbc0+uts54iQPz9knwLY LD4zC2N7eEufS0s+YZtLp/bFK5fRdK/rer9fvgHBz0kf2M4C6XLG9vzzAWGJ+Zsh4Cag lkeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:to:from:date:dkim-signature:delivered-to; bh=rgrd0iZ6B6DO+JIT3D22nNE2ClStJzE2u4T1xWzb8yI=; b=Ahz8PLYiGvnoEns8p5cFOYK45ASV2Y/TtZngyQaTa3RjrsN1Q0mhyKPrFyMugs33oe 7VFMF0V1cfTF0AnGEff3jvqgXmyI0yx/rItpldTTcgOm+VoBTmlQ/hAgswoFnIfShGgz Yd+pdDNNeDctgZQyfdzLE4Y73Su636hzzedl4CvnFa8UGZo4Uhq6hkET+iaQNbEPL5ub iw530kL4/Jcn9IRNNEBhVTS6OLr/o8Rr7L12gduxK47Y6vUP3pXG9kaDbD41MV2INATj 7yDKLufGZ67cR9bOxHjM2ndTiZvocYWKhKOgpwwWcVzO0wT1XUAein3KUoDscHX27MxS M11w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@lynne.ee header.s=s1 header.b=gQRXNU1R; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lynne.ee Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id bf28si6059627edb.170.2021.12.03.13.46.51; Fri, 03 Dec 2021 13:46:52 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@lynne.ee header.s=s1 header.b=gQRXNU1R; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=lynne.ee Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 57A7068ABAC; Fri, 3 Dec 2021 23:46:47 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8AFC468A583 for ; Fri, 3 Dec 2021 23:46:40 +0200 (EET) Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id CEB4010602E3 for ; Fri, 3 Dec 2021 21:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1638567999; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=dgwChJu5W7yEYZgWWmSxtxYNHrrbf4d72OMF7VIvxJM=; b=gQRXNU1Rc2A5IRzJaErCryymbk/8w7P7laIluy2JovQIueJtSswauV5bidnjmY/Q v3lpMMz1H7hKAGFOaVx3GifkbsVS0iU4nyZzJhVH61Zyzlf+jpDfvvNf2LJOj9JI/q2 01DcR8Diyyr8ZkLsVL3qnskjfgv/tQXFhi3H7BVMF5nYL7LgyUeRLIsY38OYWIMmpHk osZ0RWubEoehuk5osJRUbQMXiPnQZZYhH16NGkRI3S5bBpp4SePnm/fJ7mPwCEpz0rj K1bQF808mK0UgnOOqLOrNfabgAehm9EZCgC9Nr0YQM7RkCMMV2z4clZq8QOdG3xoWzD mOARssSD9g== Date: Fri, 3 Dec 2021 22:46:39 +0100 (CET) From: Lynne To: Ffmpeg Devel Message-ID: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] packet: add description for the AVPacket.time_base field 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: os7j5BrnAZVn This description documents the field. Thanks to elenril for suggesting the phrasing. Patch attached, but it's literally 3 lines: ```      /**       * Time base of the packet's timestamps. +     * In the future, this field may be set on packets output by encoders or +     * demuxers, but its value will be by default ignored on input to decoders +     * or muxers.       */      AVRational time_base; ``` Subject: [PATCH] packet: add description for the AVPacket.time_base field This description documents the field. Thanks to elenril for suggesting the phrasing. --- libavcodec/packet.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/packet.h b/libavcodec/packet.h index 9baff24635..4a349fe051 100644 --- a/libavcodec/packet.h +++ b/libavcodec/packet.h @@ -410,6 +410,9 @@ typedef struct AVPacket { /** * Time base of the packet's timestamps. + * In the future, this field may be set on packets output by encoders or + * demuxers, but its value will be by default ignored on input to decoders + * or muxers. */ AVRational time_base; } AVPacket;