From patchwork Wed Jan 25 16:55:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 40119 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3ca3:b0:b9:1511:ac2c with SMTP id b35csp547163pzj; Wed, 25 Jan 2023 08:58:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXtSmY8eFEmc6wHmh8ifqQasTpRuyfYcOtvBjoHZrTQQ/ypaNoWVXXvRVwTpjnq/b+gC4HsP X-Received: by 2002:a17:907:76b0:b0:7c0:d609:6f9b with SMTP id jw16-20020a17090776b000b007c0d6096f9bmr26050189ejc.27.1674665902267; Wed, 25 Jan 2023 08:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674665902; cv=none; d=google.com; s=arc-20160816; b=bDnwhWrO2aOdd6I1YBkj7SOLAC027gl/n01+t/OKehhK/SaKlg1wofxcy5bsCVcCqG ippIprN8OD+7hcqv9CCXzZ85f3P+gytnKVb2T+oPFfppPDUs1YjIGrsxFIjrb0rI5X75 Aap6MBlx5Foxps2MjP0fWhRUvnQAroN6KIYAILEbi+KkHZ2hMuuVXCxwJI9/aRwdZEp/ KtOB+9TlPDmDNTz9KJNTgT86OS3DlV8Th+5fc/BETHGHZkuwZyuBSWpJRjg0644e8mCs 3ctzz80ILKJWMNt/8hJWKRv9J8bTKBB33TwvsFTCgAEJRNXo49OZ8/AOPX22+30zm/Nx s7Iw== 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=pwYuMYgBz/4bj0C88FO1VQ3fn5jOg7RAnE1pPQCc1zY=; b=aKYg2dJoQWBoyN6qIZNW5umijnyJIac+qbigaSmuzExuOOBvxj1rjrutbywq6oR6cP v6Ij8SQjhzRzTO5ns+qM2cBZEql1pwgbYnZhWgDIKlfr15Hp/kRrgkanVzam2IOSQFuf ep8+fMUz7l09klA6IL4vJ4XGd0gZV+g6wPGMgaunLJiviH6stm8Ppwz+LnQJB8n5raeW SbXzleQTQNT8hDZIkZOaqdLGo9ITy8PG0Nohdxbtj87+iADO8Wm5eXyyinb1yefzx1W0 EgPusRL3DsdQcqdml2vtgUiZqLpojF3d73CNgEYK35+akYIsPwdULnRNvQonrLh6PRJg 97PQ== 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 y20-20020aa7ccd4000000b0049e19019995si6907581edt.237.2023.01.25.08.58.21; Wed, 25 Jan 2023 08:58:22 -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 68E9168BDCB; Wed, 25 Jan 2023 18:56:34 +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 39AA868BD87 for ; Wed, 25 Jan 2023 18:56:19 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 31B3F2405F9 for ; Wed, 25 Jan 2023 17:56:16 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id Q8AezCSHlBwH for ; Wed, 25 Jan 2023 17:56:15 +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 1BF9D2405EC for ; Wed, 25 Jan 2023 17:56:05 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id ED7EA3A03F5 for ; Wed, 25 Jan 2023 17:55:58 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Wed, 25 Jan 2023 17:55:28 +0100 Message-Id: <20230125165537.5371-10-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230125165537.5371-1-anton@khirnov.net> References: <20230125165537.5371-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 10/19] lavc/pngenc: stop setting dts unnecessarily for APNG 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: N7Rk9Pbuamf8 APNG is not marked as supporting reordering, so dts will be set from pts by the generic code. --- libavcodec/pngenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index 3738df297e..4392220fbb 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -976,7 +976,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt, return ret; memcpy(pkt->data, s->last_frame_packet, s->last_frame_packet_size); - pkt->pts = pkt->dts = s->last_frame->pts; + pkt->pts = s->last_frame->pts; pkt->duration = s->last_frame->duration; ret = ff_encode_reordered_opaque(avctx, pkt, s->last_frame);