From patchwork Wed Sep 28 09:21:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38402 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77887pzh; Wed, 28 Sep 2022 02:22:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EHpoDlZ6Q3QkkeDbunE0KPy50l7DiLUXZi20xON4zAXVrnMHp2ARB4hk4IECOuQhImhnP X-Received: by 2002:a05:6402:400e:b0:44f:1b9d:9556 with SMTP id d14-20020a056402400e00b0044f1b9d9556mr32247507eda.208.1664356932168; Wed, 28 Sep 2022 02:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356932; cv=none; d=google.com; s=arc-20160816; b=BMNfUHd58rtj8XUzw7DCNEbD4Wwbbpr4I7N+cziKXofQHsxoLm92n77wYbzfnZC6Rd 8yRCNp4+UHCG2VWo/gGNFBUgs7Wt2dJGp5V80YKQ2R+fcGjPrB7VpGP6QKukEyzyIyfX g376gyb4V5DSsR85ofZjE/t4oTCUzyAks+iOtOUustxCmqHUULQeyxdFcXOJcY8p6v4d 1TvbblrXhc+KRcSStkNSK2IAOxYQuI+reERhw0CCeMsgbDJ0ZlzoTnJKgqvDQ4KUfM+I kpvtkQZj29ld5ZW0wgP99z9BwyQIvymBA8z/FQOUkSOsmU4UVCjKgQTpvYihiKB5TaUC 2xnA== 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=Enwl2d7VF7ZBk1xe3lpVJFvLSyq9sayVxFVF+tdZeEo=; b=q9POkK1NFETVd5WDIJfNB7KDr4VzIno91Gv0E2dOoUh4G2lgjXxNiMtaWhSCPqEfQp TeRbFovBiIiPQXdVqOFSbY3EOvsyi5GGChsDjL+cTVMq6e/2AZFQEkidqmtcwVDjEvqy fJmk/+mMr939R8R9YN3wGAcDFTh6AF77igxx3T9lTFL6qn5Nmd5E4wVX2qWAd8mYW56v CvarUosKQ3hKC4DpX/9A7XTQZtj34iwmMHjaB+FsfSBZdVV4Uk+Q9rV/60fiaX1he08g KbkUKVRuBECLQqErl9/PJK3N67E3XMthh0lZe5Kf5TTdED4OerEX9Z8sTZVHGY/N7e9y mLrg== 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 g11-20020a50d0cb000000b004539c6d849bsi3834372edf.171.2022.09.28.02.22.11; Wed, 28 Sep 2022 02:22:12 -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 E506168BBB6; 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 4AD4968BBA5 for ; Wed, 28 Sep 2022 12:21:39 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id CAD642404F5 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 BRiDnNxIicRm 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 07AA8240183 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 097CB3A13BB; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:28 +0200 Message-Id: <20220928092132.31566-4-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 4/8] lavfi/avf_aphasemeter: set 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: yrsdgE3RuP64 The filter is supposed to produce CFR output. --- libavfilter/avf_aphasemeter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c index 3501e62825..0f7692982c 100644 --- a/libavfilter/avf_aphasemeter.c +++ b/libavfilter/avf_aphasemeter.c @@ -327,6 +327,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) AVFrame *clone; s->out->pts = in->pts; + s->out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base); + clone = av_frame_clone(s->out); if (!clone) return AVERROR(ENOMEM);