From patchwork Sun Nov 27 17:03:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 39500 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp6959920pzb; Sun, 27 Nov 2022 09:07:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf6WzGG6rJcfZlIt0B4zQ6AkUgTrBk9BeZAwmnmAd7WnSKuMcNVv7BR67/YBJCEcaQIZ1yLJ X-Received: by 2002:a05:6402:f01:b0:459:9dd3:2217 with SMTP id i1-20020a0564020f0100b004599dd32217mr35061567eda.163.1669568838226; Sun, 27 Nov 2022 09:07:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669568838; cv=none; d=google.com; s=arc-20160816; b=emOibQhK0V5kbj3jqv15uqCWQHTebYXSnkyyNowHCdHsRm3OIdRNVspE0MbK3vsmWW NaXGMKJUIBjGC7KWoFOCIyh85fe1L5FNeimrWbybfho3IYEb1rSsXjCOz4sxrC2/IZgy tsssFlq3jg5Ght7qjpJL30uO91kKl8zJiq5w8geg8858w3KoyYHErMFrmaQTLkF+lWMt az5T9OQQv8O3Wbe4KZ9EIMFVvuESuGWzS6MjG8F3KkPj6rs0jF7CXuwO4PHQOjX5rOjk AFVvF7bWbc5DUvKPQ2l/X2diMivl21D/cfBKBrWv1uXqR8iXPOqr2wxcQvGhHtHz4a5L QtXA== 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=ogQfnV8s9bjpP7ljP+BWZ8vYCMjz7Dj7y6OJYdroB/U=; b=gJ1UHmSzBiQvpbXoNZ39UdLNGjrSN7GC7VQlqI48lnIceB8dqoPa5Xwv+FI8hZPX8b R22bTRMDovbg/sphRvYp/N+VrVY3ktWeS8Ka5Uma14oOJE9LRRfxlEnjtWaaS6rkGeWt GjZmM8A9Mh6CoyCT/0tQeasFY4iN97BJFPfeKhJmqVaZy+CmzqxSwORmow+ENaeZ3m4q +ZsE8ZgaSrOl2VqQBRnFeEchpJXtLi8tdUyNMgoFZ8oL3nZPUYdUHsUykSBIcuXu05tC Tbu1KW8yXwBaYw/HhLAIakOlCgtXUu9wrNceCEkuUKtDeS6HjZrswyd/rH1r1KLNvoir GINg== 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 bk9-20020a170906b0c900b00770872942d8si6449571ejb.958.2022.11.27.09.07.17; Sun, 27 Nov 2022 09:07:18 -0800 (PST) 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 3173A68B7DB; Sun, 27 Nov 2022 19:06:07 +0200 (EET) 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 92BC568B721 for ; Sun, 27 Nov 2022 19:05:59 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id D5B55240499 for ; Sun, 27 Nov 2022 18:05:58 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 6xCI7r11BSur for ; Sun, 27 Nov 2022 18:05:58 +0100 (CET) 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 D92E6240D0E for ; Sun, 27 Nov 2022 18:05:51 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 0EEB83A2604 for ; Sun, 27 Nov 2022 18:05:47 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Sun, 27 Nov 2022 18:03:48 +0100 Message-Id: <20221127170351.11477-27-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221127170351.11477-1-anton@khirnov.net> References: <20221127170351.11477-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 27/30] lavc/libtheoraenc: stop setting dts unnecessarily 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: GMSjXSykOUN2 Theora is not marked as supporting reordering, so dts will be set from pts by the generic code. --- libavcodec/libtheoraenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libtheoraenc.c b/libavcodec/libtheoraenc.c index 9b8404ce31..e36a948511 100644 --- a/libavcodec/libtheoraenc.c +++ b/libavcodec/libtheoraenc.c @@ -346,7 +346,7 @@ static int encode_frame(AVCodecContext* avc_context, AVPacket *pkt, // HACK: assumes no encoder delay, this is true until libtheora becomes // multithreaded (which will be disabled unless explicitly requested) - pkt->pts = pkt->dts = frame->pts; + pkt->pts = frame->pts; pkt->duration = frame->duration; if (avc_context->flags & AV_CODEC_FLAG_COPY_OPAQUE) {