From patchwork Wed Sep 28 09:21:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38400 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp77794pzh; Wed, 28 Sep 2022 02:21:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6UQwFkOjpkH+5RReZuwhEFJqtSqOBawkncJndYAeJRaKQNjaNQ00yKrEEujH2Eoo2KgaIZ X-Received: by 2002:a17:906:ee86:b0:741:89bc:27a1 with SMTP id wt6-20020a170906ee8600b0074189bc27a1mr27038234ejb.725.1664356915338; Wed, 28 Sep 2022 02:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356915; cv=none; d=google.com; s=arc-20160816; b=s1RyXR/A+VjyAfrnXjwiRdMXtG4m9wVXCOHpr6/mh6kpu6hBB7QbIceqrpxa0vZYmY DLrEyw7DErSVbYWl4eFmK+yvEnIUwiOlwGC7v8cZ5YBkCCqygWyyi+YTdaAGk+z5DlqO fM8LtZzJVoIm82KMHACUjeIpgHG+EMsTR+Dbg1UMLHTUJnZg5olIg9vtBU7fbpUASSwq 5oVdbjAugH45i6EMw6OzWcB/TCmr4j2UYMyjIc/heOJzQC4608qD/dhf8gaXnKipUuyx T+Fnj6kbuKAiJV4Bxgdih7niiIEcIUEj8QcNHPdRCLVSTTEpIqwISyPMMTrvl5ZFlpIr b3cg== 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=jnptQ3eUPYUCQcSVSX+VidlwiMzXBYjBRTOpSVpdlaA=; b=pR4YEHeCWdijOnm5ZmEzBwVoD3xFPwDqhsBQFbOcv6XsvbIRI0k4/CMxYbh0j4wMgt 6g80NjkWlTqVjaDG567NbMNkmmoalJ1vJugskI0FkrHk6us9x6MGDM74oOiURw8XtXiG nDRyZHbNGndE8k1ExcJPap3YWW5asOMuMSZsQ3Gs34/UfwD52GBuuWFhzZelLZv/k+sU Cf029IjyesjfK/X1xb2+BiImSBepasr7BgIItsfgDBIpk9thSx9WDdsW44sbTQZLSWNN 6ps0nsX6KN0+tNzt3KBDsygKDgK3VnTYDlZw3SeeCKb1sWbStHZdvy9I3+uqpzLtFz7W DY5A== 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 p8-20020a056402500800b004571d0f395fsi4296571eda.602.2022.09.28.02.21.55; Wed, 28 Sep 2022 02:21:55 -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 2A03A68BBAB; Wed, 28 Sep 2022 12:21:45 +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 5B87768BB65 for ; Wed, 28 Sep 2022 12:21:38 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id DC1832400F4 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id ruNkcvnDXdok 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 0D4AA2404E4 for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 116593A168C; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:30 +0200 Message-Id: <20220928092132.31566-6-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 6/8] lavfi/avf_showcqt: 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: cT/7MQMt3Sl1 The filter is supposed to produce CFR output. --- libavfilter/avf_showcqt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c index 33c482bd42..c019dc2564 100644 --- a/libavfilter/avf_showcqt.c +++ b/libavfilter/avf_showcqt.c @@ -1187,6 +1187,7 @@ static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout) UPDATE_TIME(s->sono_time); } out->pts = s->next_pts; + out->duration = PTS_STEP; s->next_pts += PTS_STEP; } s->sono_count = (s->sono_count + 1) % s->count;