From patchwork Fri Apr 5 16:11:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 47831 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:24a8:b0:1a3:b6bb:3029 with SMTP id m40csp1069074pzd; Fri, 5 Apr 2024 09:13:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVASiUL9UI4LCnm3c7hRtMZXfu92D+IdivNhoHQNDiKlklV9Rw26Ajptd+M1CodPX3Y7/9B44nHJGj3+/4xDLRKKpzM0tc2Vypm7g== X-Google-Smtp-Source: AGHT+IHeAv+WbiF1ELVPPz1HahvhmYsMFboiFlokPFN4+lC4VkePsVM4Bv3Lzl0B3wwBi17ej6rM X-Received: by 2002:ac2:5194:0:b0:516:d24a:3d72 with SMTP id u20-20020ac25194000000b00516d24a3d72mr1279650lfi.8.1712333622367; Fri, 05 Apr 2024 09:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712333622; cv=none; d=google.com; s=arc-20160816; b=IErFzrvOJnISIjBAuXzw/trg5umAEAlW8nCrKSzHWd4imE8NfsnAF5NC6Yew+ubDFk NVkH4mwIhHhF8Sy4yydEtwQtpsPti4Pqkxg60HYdp+U9NAhEkwLJGEfIsIJfsa6pFht6 j2uJ+7aziqDt1PSVQHVwUu1qXJBcHNH+c45V0xQ8BxdjP/+wAsKAmH/+X4NGESwNbhGc IPHhGae6Jcrwnsitl3NqDtWKLJ9owaokLVAGRjbn57sviSlb+4ayQRM8FtXRhoyMUE3z mtUEyEjKhsq6/KJMZck7C2rsZ0XDg0fNj/Bh+Ppqq1jrLdlimL/Hx7eT597cVMjt+cLw WbiA== 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 :dkim-signature:delivered-to; bh=kHQkG0gKLhp2splwx1xeH53vJJS9KJ60a7vA7Wi3Gr4=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=e5zW5UnWSeOcpqd/bI42Skk0IsZIxS0nynjn8riankVZrzGY6Wjbzh4nwk5okbWnuq aIWvGMOU2ZJkFoSQdFsmobsT9+0siHMyoWBtAPNUoekUB1ynj9eb4oRkcnzM5ztbco6X iyuZ3dsYAKD3GO5W95D2zTYcG4Ipcxg+XdtbDqpiSZCORoKrhl0gRh6ehcDR6R6RSmky AXDOBeZd4bd3CFGxD2/Xb2zMmUGJoGOfNPqr1+Ll/gTsxd/YmFh+p0cmo2IFRVLoQ4LJ +mVfM9TNEPvLwUjC9/dRd9fNOl4WxJLDZXW+hkEn/sBmp9xMSmG5MH6OtB9QQA7eQj35 fznA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=YNYvXRa0; 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 c8-20020a05640227c800b0056e0ddfcf73si893679ede.204.2024.04.05.09.13.40; Fri, 05 Apr 2024 09:13:42 -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=@khirnov.net header.s=mail header.b=YNYvXRa0; 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 B4CCA68D222; Fri, 5 Apr 2024 19:13:13 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 821E368D14A for ; Fri, 5 Apr 2024 19:13:04 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=YNYvXRa0; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id A061F4D48 for ; Fri, 5 Apr 2024 18:13:03 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id GHflJiXBYuch for ; Fri, 5 Apr 2024 18:13:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1712333581; bh=6FYi36CTa/QLDAuLPHC24g8bMkCPqd5xv0tGgCJve1M=; h=From:To:Subject:Date:From; b=YNYvXRa0IAHDu61FPequXCZYAJhAal1Q3NbWd61r8S1kzNZnJkWmFIZAmYrda8Nd8 srbzgdZlXaVZGYW+UvXfRzv6UXzS4maPAQsjIyLd3ev/K4WOMoHPfn8hmpQXVGPxNM PljinozLrMT606Ffz42sDv6pNJ5VIJ7YDHFjkjIyu+5Q0tyK0Gdeo+NeNrPeDnUoa/ tKigodfBy8VJsWrEeBF9LG+dJfWzF4ngfT3HLvlF/jgNttkjmP6kiYE8IUXTlI7c6y 5RP1f50ME3GtZVUYCyVa3CjR+jWhbxqUBWIpY84i+69k6Y7S/WlPdTNpCGA/tS3/A+ OT2wbix2hOAXA== 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 mail1.khirnov.net (Postfix) with ESMTPS id E3CBA1C2D for ; Fri, 5 Apr 2024 18:13:01 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 730F83A03D8 for ; Fri, 5 Apr 2024 18:12:55 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 5 Apr 2024 18:11:42 +0200 Message-ID: <20240405161212.26167-1-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 01/31] lavfi/vf_scale: fix AVOption flags for "size"/"s" 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: AcF0+LmYXWlv --- libavfilter/vf_scale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index fc0e3802db..1c07daeddf 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -998,8 +998,8 @@ static const AVOption scale_options[] = { { "height","Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, { "flags", "Flags to pass to libswscale", OFFSET(flags_str), AV_OPT_TYPE_STRING, { .str = "" }, .flags = FLAGS }, { "interl", "set interlacing", OFFSET(interlaced), AV_OPT_TYPE_BOOL, {.i64 = 0 }, -1, 1, FLAGS }, - { "size", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, FLAGS }, - { "s", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, FLAGS }, + { "size", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, .flags = FLAGS }, + { "s", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, .flags = FLAGS }, { "in_color_matrix", "set input YCbCr type", OFFSET(in_color_matrix), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, AVCOL_SPC_NB-1, .flags = FLAGS, .unit = "color" }, { "out_color_matrix", "set output YCbCr type", OFFSET(out_color_matrix), AV_OPT_TYPE_INT, { .i64 = AVCOL_SPC_UNSPECIFIED }, 0, AVCOL_SPC_NB-1, .flags = FLAGS, .unit = "color"}, { "auto", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = -1 }, 0, 0, FLAGS, .unit = "color" },