From patchwork Wed Sep 28 09:21:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38401 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77834pzh; Wed, 28 Sep 2022 02:22:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4UeJtEKmkpj8YRa6pCLzfB7NlLAuO91OxUiDavvQJy6DygbsCMBX8Yr7Im5DtRjgSklwoF X-Received: by 2002:a17:907:6d03:b0:782:abba:936c with SMTP id sa3-20020a1709076d0300b00782abba936cmr21645301ejc.758.1664356923145; Wed, 28 Sep 2022 02:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356923; cv=none; d=google.com; s=arc-20160816; b=OpxwfVlcdK5XFTT3+YyAeCIgC+EC27DXCubhHQ6jPkXkku3VF/tQ19myEoodpsR/Of N+g5tZLalgwgcYjbqj0masIjMZDLLts+/1BnRT9E7hPG2LZgCzSDitan+7tX5XdtL+Mz d0iqU3t4M3VN/IwtfoakyXfwq+Ktpz/JkWjE3Ys45dYpipjK1TZWUS9IlltO8DIfEj1B AWdiZDMVCjA3hLxkUFqUMlxNLrT1bQQqzLvXeZpTUTKYoyHzMe/QwvUF9YgdagBqKdAi 3+d70QncrcnyPQPuOz7p4W1uukQT50G8CwZOf7SyytE6/09/ZgaL+UHyBlBKAbX7XrHG rLIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=afEguXSpTSPBebU4A+tDKzTn08Gn1c+A+AGSDLB25Tk=; b=JvBfTNbO1WG3bu2QGl+x5n41Bcx9bEVp6HWKFGfX6PYWqi5PMLSB8j0FkkrCCBu85R Oya8kNcE/EtFNs248PFasnIwTfsc4MrHaT1ux/wssejkegHx8PPj376ZUwoBNVWfKPhr LPI+KkSQohiYP20P0Z9UiXd4+ZoKhLnwpDWdCymRS3wHPZhU/g4GhMBD8YB3D/IB2QyV JGpyQAnm1VBzQw2eBDSwDq2FCZ4Kt0P7dxGDjA8i83zlWuXiEN1x7o/8hLpbGwDqcL4G Jg4FwSXN3YEIBzg5zNY1LsUHVALcU6t8Bt+oBJGxc9k16vXS8dw0QpvDWot1DZp6lowW yASQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id d23-20020a056402401700b00454c2c7f37csi4320839eda.101.2022.09.28.02.22.02; Wed, 28 Sep 2022 02:22:03 -0700 (PDT) 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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 16E6668BB65; Wed, 28 Sep 2022 12:21:47 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C39BD68BB82 for ; Wed, 28 Sep 2022 12:21:38 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 4AFB52404E4 for ; Wed, 28 Sep 2022 11:21:38 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 9O_hS4TeojdX for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (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 "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 164A32404F5 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 012243A0D7F; Wed, 28 Sep 2022 11:21:36 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:26 +0200 Message-Id: <20220928092132.31566-2-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220928092132.31566-1-anton@khirnov.net> References: <20220928092132.31566-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/8] lavfi/setpts: unset frame durations 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: wMoqfjgdKnjs This filter cannot know frame durations. --- libavfilter/setpts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/setpts.c b/libavfilter/setpts.c index 171fae88c0..ba653df4ae 100644 --- a/libavfilter/setpts.c +++ b/libavfilter/setpts.c @@ -185,6 +185,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) d = eval_pts(setpts, inlink, frame, frame->pts); frame->pts = D2TS(d); + frame->duration = 0; av_log(inlink->dst, AV_LOG_TRACE, "N:%"PRId64" PTS:%s T:%f POS:%s",