From patchwork Fri Jul 7 09:48:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 42479 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1e:b0:12b:9ae3:586d with SMTP id c30csp7161987pzh; Fri, 7 Jul 2023 02:49:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlEV6vGDB2iudPST18TMlCJX1ByuZrIfwufNCCZtaCgaQI6hmQZ+QnsJE3/d4LkCzW/ewVQ8 X-Received: by 2002:a17:907:969f:b0:953:834d:899b with SMTP id hd31-20020a170907969f00b00953834d899bmr7561416ejc.29.1688723396062; Fri, 07 Jul 2023 02:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688723396; cv=none; d=google.com; s=arc-20160816; b=K2uWhHBEyY00ZAVGUNqlCCHmRsQ0vPpIKlwi1xEzvNFRKcMEoTu5evQo2/qehKrucT A4cTbZ7exHRFtx66Uc47RgL4kkqzrAX0vrw8VW8y/IDGDgHk0sb9Q1TVHUD9oxSGY5ui 1Ewim+FD9ijzHdteBtaMNzAvjqYd3Sw4BdlIl5z2fb+1ZRmP1KL4iyC4l97vqWmCuGgP kUD7aeDpMiHgrdKs6ErEOZTq+re/PI7z+SMA3CVMpOtL77GzkgY3ERmFrGpholntXBV0 v/SxjiASxGAscZD1871J1haFzAIvv7C5ZqPkr4tWNoYuJF1TtEPUAV3d2krg/K9rTXIv XZ7w== 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=D5gwnHkYMvvTGiqBzf1ZiEsFzhO1u6Y6AyizRwvGwpU=; fh=8ZF2QtiKOjBtyn9wuO2cMeZaLsE4aq02Bq77gGK61E8=; b=XaK2FZinoV1jpTSPEZODm33BOznNGM11fC7M29bn19WcmZzHnwm1O6wwhHd3w8gDTP x0dUQxHndluRRH6S2Eo8Ri2NYlXNkP1IUZwnzi1Dh+ziTcTa119rkoFXcmZUCQYwnHjY uVwHtZIDdZUQrLU7DekmJoW4aX7ijLGTkosG6y9gE4vFmiSGwHn41Q6Trpy87QNnX+Rk xPBzgvnrBHqGdp/zy5WgUe2P6gwxgmHM06CMPorpss78smz4E4NdqyABwuKRvFEo1Lxk AWvZmcEy3YeYcVRenV+uo2NPVmmKmG8Oc/q5Jfdi/cqpqqULLBrxyteWpMOrIxpXad4a 1jqw== 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-20020a170906b0c900b00992b6f26c0esi805079ejb.672.2023.07.07.02.49.55; Fri, 07 Jul 2023 02:49:56 -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 41A4768C7CB; Fri, 7 Jul 2023 12:49:14 +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 493C868C7BC for ; Fri, 7 Jul 2023 12:49:03 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id F38962404EA for ; Fri, 7 Jul 2023 11:49:02 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 0u6CUoUzBZYa for ; Fri, 7 Jul 2023 11:49:02 +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 C5AF0240591 for ; Fri, 7 Jul 2023 11:49:00 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 755D43A128F for ; Fri, 7 Jul 2023 11:48:54 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jul 2023 11:48:31 +0200 Message-Id: <20230707094847.25324-6-anton@khirnov.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230707094847.25324-1-anton@khirnov.net> References: <20230707094847.25324-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 06/22] lavfi: make sure frame SAR matches the link value 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: vEhTXlGdPIcf --- libavfilter/avfilter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 0141b64cbc..04887b6ee5 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -984,6 +984,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame) av_assert1(frame->width == link->w); av_assert1(frame->height == link->h); } + + frame->sample_aspect_ratio = link->sample_aspect_ratio; } else { if (frame->format != link->format) { av_log(link->dst, AV_LOG_ERROR, "Format change is not supported\n");