From patchwork Wed Jul 13 09:17:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 36770 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:6da0:b0:8b:e47:9dbf with SMTP id wl32csp225877pzb; Wed, 13 Jul 2022 02:18:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uOtPv2ISiJYB+EAoVQJlKWj2gAQDsxZvcgN4fyG6DntxUr/MoBhIGq+/XQLOhJJaQGrupX X-Received: by 2002:a17:907:7b8a:b0:72a:9a42:d5ac with SMTP id ne10-20020a1709077b8a00b0072a9a42d5acmr2473870ejc.306.1657703895362; Wed, 13 Jul 2022 02:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657703895; cv=none; d=google.com; s=arc-20160816; b=pz8E1afEGU0H6kk3Xhi+zFR8bjj+CGO5vusnvVe3H8Bs1ELRfboMBTrQ7/+5k+34Wu MJCr7NEPIlApzRSfPCSkrVAduCWmsJVAxASHnHcfte6lfB4JrN/FRfI7seMsnn0FLHZn q/eEjW5iNmgAaPqxgM2vzmr6fh1rqcIhCiiBK5eIorj+/G8BgfKrjpVy7pkT/XE6ASSj /5DnWtji/6ob4Its/YiTjeeJSEGnFV/Hl5qn8P/nO4eKhk/H9cdRomogq87utGdtc8F0 ZPPbvFqEt/xtzD7tVxqIBzlI7TGfxnUnwhl7sEOOQF5vsjLCjfY5EpYle4fslXgBSjTw ZVyA== 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=n8U4sh2Gu+bJvM3X5cR+UHAFRh0AVi5v4bpfimMKqmY=; b=wTH5g8sGRnkTQSpoGmGu8vf27FyKXc34pUSStJ3arSlRHQZVpGZ8/x6VyP0/AxDsp8 FJGjXGeSrv43EG1lzmnhAJ0UhUpUhW8Wb01KXXUD9A5kmfQqxCQ0yieTFGt8lS7/Brap QXfa6v/ZkTmsACGTqZCuENxebnDX3m1+ZRlObHA5cxoe9bqiDAz+VtLET7cBWXULGQc7 M1N5TFOm+zuJlv7/qBnEvSoB/hBmj9Ne3/Y+QVaAOS9eDTlx7F2u025BqMzR9kV3Lgn9 eMdhsDyXUSLttP2yY5HTCSpeyUSc4s9f57wW/3q2a4jyjZGO1iyqedfbYoicheklndHi IySw== 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 zb13-20020a17090687cd00b0072b978aecccsi2227091ejb.583.2022.07.13.02.18.14; Wed, 13 Jul 2022 02:18:15 -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 6197C68B8B8; Wed, 13 Jul 2022 12:17:41 +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 5917568B786 for ; Wed, 13 Jul 2022 12:17:32 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id B09882400F5 for ; Wed, 13 Jul 2022 11:17:31 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id lBojszUSqhqm for ; Wed, 13 Jul 2022 11:17:31 +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 9021D240506 for ; Wed, 13 Jul 2022 11:17:28 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id DDA583A036F; Wed, 13 Jul 2022 11:17:27 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Jul 2022 11:17:22 +0200 Message-Id: <20220713091725.16638-6-anton@khirnov.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220713091725.16638-1-anton@khirnov.net> References: <20220713091725.16638-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/9] ffprobe: use AVFrame.duration instead of AVFrame.pkt_duration 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: kkWAaPiIAj6B --- fftools/ffprobe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index f156663019..a041241e1e 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2570,8 +2570,8 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, print_time("pkt_dts_time", frame->pkt_dts, &stream->time_base); print_ts ("best_effort_timestamp", frame->best_effort_timestamp); print_time("best_effort_timestamp_time", frame->best_effort_timestamp, &stream->time_base); - print_duration_ts ("pkt_duration", frame->pkt_duration); - print_duration_time("pkt_duration_time", frame->pkt_duration, &stream->time_base); + print_duration_ts ("pkt_duration", frame->duration); + print_duration_time("pkt_duration_time", frame->duration, &stream->time_base); if (frame->pkt_pos != -1) print_fmt ("pkt_pos", "%"PRId64, frame->pkt_pos); else print_str_opt("pkt_pos", "N/A"); if (frame->pkt_size != -1) print_val ("pkt_size", frame->pkt_size, unit_byte_str);