Message ID | 20220404113037.13070-46-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c05:b0:7a:e998:b410 with SMTP id bw5csp1915307pzb; Mon, 4 Apr 2022 04:39:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwNg0cgzEPIhW7WzHBVKmBUhmlVYVvJwQePwBCiyZjKlkCkrwC1Re5G7qiXsalCcOhlDgr X-Received: by 2002:a17:906:6a05:b0:6e7:f5c8:1d55 with SMTP id qw5-20020a1709066a0500b006e7f5c81d55mr2471093ejc.443.1649072393449; Mon, 04 Apr 2022 04:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649072393; cv=none; d=google.com; s=arc-20160816; b=MQO9DCDZuxCeoTwX2u0jpT1e8sefh4icGlowWkmrUG5YW4eliHz0OQk/vcTJTdqLsf Sa3nLexwRwekUyIENy7TKoeUiAn1vkimjgRvDajArSd03UC8ktBOn8RGegpQldAIK4l2 fjCdxec+U8CwzOD7gL+XyhXl5ERP4OpbFO48tlI2HaeOYdBVBStGXZ9DIUXdgMXqCx2t GLNdbFnHigP5+YreQwgYHvewlD2NpZLvajCyTBnqFJGVmZ4c5s0Zd6Gg8Tm1Oj87rb9O b99+asT3/Ne/kZGklm1rTCkdpU0cyQrmMEk+EkeHlOKBCwtCLRghRx1OP9e/hKXJHbjj fLvQ== 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=aGDr/X1csCfz87ItuFOseli11ku6Md295g44/KCtUYE=; b=Xwgb40dnYl84v4CRAk0HwOZc1+kYXvIuaZ1wOym5BhW8J3U6FfO8bNm+WgY0LMIDWw aNUmQmHsd0qot7x44/AvJgfa7gsZVjs0DgxX62rozBiXcMbcdbBWSIAbNF/4bnOIeIKD jGAuz9x9rSI2hzT9CcTAtp7cAaa+DI3FB/CLNNhpWV7a/jk08atCvl8Bj0iphwd6xRh2 qC77G4s3qu2hn8t4LwHedyWlutlOK7H/tsoFzAfM/31IvVLAKpF1MRYQ64odOKJRdZnL M4nCyQ7PfOyo/JzFqoN5gdo8en0EM5pZ+s1j8p6iz8+tpH9xjXp2aFJ3khlbCyhtwFEX bWCg== 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id q16-20020a50cc90000000b0041cdabdaad6si676450edi.621.2022.04.04.04.39.53; Mon, 04 Apr 2022 04:39:53 -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 6DD2D68B36E; Mon, 4 Apr 2022 14:37:55 +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 110F568B34B for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 14:37:50 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 7BD40240179 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 13:37:47 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id GqN-oY0wtkhy for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 13:37:47 +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 0AA62240685 for <ffmpeg-devel@ffmpeg.org>; Mon, 4 Apr 2022 13:37:42 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id 482783A0E53; Mon, 4 Apr 2022 13:32:12 +0200 (CEST) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Mon, 4 Apr 2022 13:30:33 +0200 Message-Id: <20220404113037.13070-46-anton@khirnov.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220404113037.13070-1-anton@khirnov.net> References: <20220404113037.13070-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 45/49] fftools/ffmpeg: stop using av_stream_get_end_pts() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: AFHysZRHTaDP |
Series |
[FFmpeg-devel,01/49] fftools/ffmpeg: drop an obsolete hack
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | fail | Make fate failed |
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9987b15888..0cab73ad7a 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1604,9 +1604,8 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti vid = 1; } /* compute min output value */ - if (av_stream_get_end_pts(ost->st) != AV_NOPTS_VALUE) { - pts = FFMAX(pts, av_rescale_q(av_stream_get_end_pts(ost->st), - ost->st->time_base, AV_TIME_BASE_Q)); + if (ost->last_mux_dts != AV_NOPTS_VALUE) { + pts = FFMAX(pts, ost->last_mux_dts); if (copy_ts) { if (copy_ts_first_pts == AV_NOPTS_VALUE && pts > 1) copy_ts_first_pts = pts;