From patchwork Wed Mar 13 12:24:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 47023 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:e85:b0:1a3:31a3:7958 with SMTP id ma5csp348737pzb; Wed, 13 Mar 2024 05:24:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUW8jyy4KMVCuPNwGiIwmfr+FwBM8Bi/vV1RbqfkaSyihYE4CjqMLcA/ESujAz+FFOMTLm1kmGBpeGX8Jn12ZiXm75u6JRdVwthzw== X-Google-Smtp-Source: AGHT+IG+yymggpOAiJVeRIAclkcR9vIKXDXkL2Z06KWxULDA6AxptRN7oXExu8gK6uuLTQ9XoT75 X-Received: by 2002:a05:6402:907:b0:568:3362:cccf with SMTP id g7-20020a056402090700b005683362cccfmr8836211edz.7.1710332679642; Wed, 13 Mar 2024 05:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710332679; cv=none; d=google.com; s=arc-20160816; b=zqnykNW7Fae4vxSOe4Um4vtsKxQmmNpWnWJ1e+odOIu87x/wSs4m7zraxiDwnz8nOK DWTRouaLgTLR5ycoDtqr2eh5uBWWY2yICn6do6l6aowHB+Jty3AdpjrrVIoRNOYyh7WA aIA36xCF6TH1Nt9f/k+rNkj6EYjPifhDdU421vJDqQrS1YpNORwtuEQX9YJ51rodUq5X AWYsS5xLuxBjKsj7/9T1uYwi/A1XRQyxSUd157lSlFwONSdrVuEEDFsNT5oinO2hGzu3 XE0KFHMutj2dNLz/cuJwcWrLg/XX98Q3YMI281yObu/Tg4Tmtz2GuXTw60v7m/myiFUo bBGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=01CHV3Phksy0geaMevSRy3UmhZ1ut2vhPg4RPntyUmY=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=huINglTATXpuA1dxDGlRq4Ui0hVuqL5j0R0vjDTA5IuasMMSQISqlkswQ+3GxUKCMA x/kBb/TUYQuhNPQ+bZrEXwfViwIaxFGlPacYaKS9qNnAhXv9h3fT+oSGGiaexcuR2EY8 fILk1k732E6KDzcsfgP4R6VmIaRHWoL3t2dF/Ciz1+rx01nd2CzIKtX307rT/e4AD/p2 stDlDhpPacwgGwtKX0IsKYFTHz7EZryTg3UfJKwclUqESLOUF92VwMQVeBMZw3PS+EWf mtAvQ+E13QL5Ydcya5+VR00XRutBwa77sQ0i1lp/CPHvCUikJPY2Gfno0STTxMl6rdRx 3kCA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=ZQ+gk2xg; 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 u22-20020aa7d896000000b00567f50ff747si4673711edq.598.2024.03.13.05.24.39; Wed, 13 Mar 2024 05:24:39 -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; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=ZQ+gk2xg; 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 EDE5268D0A6; Wed, 13 Mar 2024 14:24:35 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2757E68C1D5 for ; Wed, 13 Mar 2024 14:24:29 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1710332668; bh=CCmPz7xCJq2eu85cNpCc4IErU6hVkeP/qHVkYacYiF4=; h=From:To:Cc:Subject:Date:From; b=ZQ+gk2xg3w1znGBfZKM1orovV0kSyWl0i8qWowJPMVoYGttzh2SZBDA69yvlNQ5hD gqrGDgi/8J2VeiiUzuO1FH/ceifwb5IkopJ63BeitxxWl88WLLs/PwRpxuBPsPv82k pdLZm6PMfaHpIAavF5wTls7djrhJ/nyjgVV+tR8E= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id BDF2340703; Wed, 13 Mar 2024 13:24:28 +0100 (CET) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Wed, 13 Mar 2024 13:24:24 +0100 Message-ID: <20240313122425.92457-1-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] avfilter: mark scale2ref as supporting dynamic sizes 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 Cc: Niklas Haas Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Y7+aYgduufMn From: Niklas Haas Analogous to the "scale" filter, which this is practically identical with. --- libavfilter/avfilter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 831871de90b..dcad4d55292 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -1027,7 +1027,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame) strcmp(link->dst->filter->name, "format") && strcmp(link->dst->filter->name, "idet") && strcmp(link->dst->filter->name, "null") && - strcmp(link->dst->filter->name, "scale")) { + strcmp(link->dst->filter->name, "scale") && + strcmp(link->dst->filter->name, "scale2ref")) { av_assert1(frame->format == link->format); av_assert1(frame->width == link->w); av_assert1(frame->height == link->h);