From patchwork Mon Nov 15 15:23:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 31433 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:d206:0:0:0:0:0 with SMTP id q6csp5990396iob; Mon, 15 Nov 2021 07:24:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkotSj8pD6jRAXZdtm16/Rt4cyK76Ol9Dqost+FUqCZio6OaaFYAYbIENF+5LcV8iyL9Jp X-Received: by 2002:aa7:c041:: with SMTP id k1mr54867618edo.330.1636989861648; Mon, 15 Nov 2021 07:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636989861; cv=none; d=google.com; s=arc-20160816; b=cBL+DozZd8ANNkTQVjNXzZmmBpPxkt32FsjV/3/TORL3ECrWImwJGO0jdBhDE6J9a9 kaQBkM15cj9c/1JKN7k7UyNSf7SlPl+uzJ7YF9XJwN/umTJ5ZG2/ZcPZJbbdxeTn5HXH cCvubhOBwGutpzk7IBQS2mnI339rg4XHZv+y/1mJFwiTniLP/ShGegVsIVz+QxTcZBNd k3ixnN9jjO9sg6Ak5VMcS01nXlic3TpDAi6wNBtVApAomTuFuTKRx1l2Icw9tc1AIk02 OZAuMuRWMjOxJ9xTb10iA12zK9UwW9be9ZvaUKhPYPXlclTE65psZnv0rN3i5+CsGvs0 QnQQ== 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:message-id:date:to:from :delivered-to; bh=XhNARKTMymLFTRhBrWFe3XEi6I3et3qi6Wbr+Qiyw/8=; b=JHb9I3jSmjsyObokOg/sYO4aNhOIuzrcSacuwCc+hfE/1NmVpQ9KbkfXcBlZ7Ko+uh zRO9CsCf3MtU0g/qp0T70m0uXI93oTsFzPHqbPaRe6/U0DF6L86Ld/PbKeVfV2DBP+4G 2EEL5SopJGMUunWIaKLX9nDSr2wpcI4CqpeCxCefe79W5FX9TdOp5LQWUXQ6KllRZL/d lssWr6lGvAXxEfIkPk2iAuPHB2bdJU/K+1iig9P1Z3GOUAE8bwT/vjgUif5cwllfSLo3 aFgYn07T5btXtyVKPUct9ZgsLzgIpU/3bpBrhcospKCoHJIjbsFq3BAAADwhpPX0REnn vJmA== 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 do3si37823889ejc.653.2021.11.15.07.24.20; Mon, 15 Nov 2021 07:24:21 -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 1238668ADBD; Mon, 15 Nov 2021 17:24:16 +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 F26E068A716 for ; Mon, 15 Nov 2021 17:24:08 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 576EA240507 for ; Mon, 15 Nov 2021 16:24:08 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id CohDOIPHRHYl for ; Mon, 15 Nov 2021 16:24:07 +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 6EAFD2400D3 for ; Mon, 15 Nov 2021 16:24:07 +0100 (CET) Received: by libav.khirnov.net (Postfix, from userid 1000) id 6486E3A0631; Mon, 15 Nov 2021 16:24:07 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Mon, 15 Nov 2021 16:23:52 +0100 Message-Id: <20211115152400.5522-1-anton@khirnov.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/9] ffmpeg: do not copy chroma_sample_location from the input stream 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: oOCUzMH+WHpi It will be set from the supplied AVFrame later on. --- fftools/ffmpeg.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index f755f44bd9..0f2fe192ac 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3368,8 +3368,6 @@ static int init_output_stream_encode(OutputStream *ost, AVFrame *frame) if (ist) { dec_ctx = ist->dec_ctx; - - enc_ctx->chroma_sample_location = dec_ctx->chroma_sample_location; } if (enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO) {