From patchwork Wed Sep 28 09:21:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38405 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp78095pzh; Wed, 28 Sep 2022 02:22:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5WYhXz8e2sCBcDXFyNw+bc+NuMzmaldXUs13crnMR3xgn40oWi1mdBqNnWlLpN10VBGI+5 X-Received: by 2002:aa7:c04d:0:b0:454:2f81:b966 with SMTP id k13-20020aa7c04d000000b004542f81b966mr32699960edo.269.1664356960641; Wed, 28 Sep 2022 02:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664356960; cv=none; d=google.com; s=arc-20160816; b=wi3GT4PpDBLc5UqcNZUjCHR02x6ccSZvUapTne5WNUi+rCHb7Pq1YANBoK1ARPdPfr +dsPjxMcjDZ9pZu8Uxjd7RFfyHQT7pPaWthT8fQ3Sv7hISRsnuTrc7FA2gX74UQFwdR/ +RzzSE7tFfr2YN0oyvAlYpBcb2adfWqRKGxcI6IHSX1LQIKwdzDOsAoeGTgIzIye4Ict GvM8DCJu24i7BkWEw+WMi02lGdBHIQzXpeWp/vOstQZsdlZPY2LJ/MeDOe/7cWweIM7B 0GqHu59rdpOGyChGgEY9q/hkpNem2BWoJP6CWWh6HVu//LLA0NGoqiVN+jw4U6Oxjbjs RX1g== 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=D8LlqEZ2p8tPygMVIZgBFuCTQ9OEy2lxoMtLNhro9MQ=; b=oUIIN///TIzCbAANsDR8qnLO/fvrKlQ5IWcJQhptm5RVcpKXCSD2nNYyOF4EKF6P5w xdtf1mHwbYyb214LkIhK9obx+DR9MsHCRSoxyuNSEpwpeucGmvTWbZ0AkNmoetg3CeIM gXGlkapemO3N6rKkL6bvquGJnoXSsZnKnK5/kHxwjYjDQZzsf+rgHY67Fm95gp+tRz+Q eEpu1Vu6533BYzGQclEuRdmMBqeUqVSjW+O+qt11/WC3kAEy4plZjD5slo6Gb9aG77j6 aTZWQDRR05aWCQLTisfGXawnwKJY+WAwgqBHUhH2kO5tmA8L3BPJ91cSAlM0kVeiYZJs Hspg== 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 pk4-20020a170906d7a400b00782a1b59663si3301823ejb.891.2022.09.28.02.22.40; Wed, 28 Sep 2022 02:22:40 -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 D1C4868BBCB; Wed, 28 Sep 2022 12:21:50 +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 4773668BBB9 for ; Wed, 28 Sep 2022 12:21:43 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 138EA2404F7 for ; Wed, 28 Sep 2022 11:21:40 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id IhM8GNcR-3ks for ; Wed, 28 Sep 2022 11:21:39 +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 386062405EC for ; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 159D83A169F; Wed, 28 Sep 2022 11:21:37 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 11:21:31 +0200 Message-Id: <20220928092132.31566-7-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 7/8] lavfi/avf_showfreqs: 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: 1QD8/AOLEELt The filter is supposed to produce CFR output. --- libavfilter/avf_showfreqs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c index 86a67c7328..cc7d6204b4 100644 --- a/libavfilter/avf_showfreqs.c +++ b/libavfilter/avf_showfreqs.c @@ -469,6 +469,7 @@ static int plot_freqs(AVFilterLink *inlink, int64_t pts) av_free(colors); out->pts = s->pts; + out->duration = 1; out->sample_aspect_ratio = (AVRational){1,1}; return ff_filter_frame(outlink, out); }