From patchwork Tue Jul 23 14:42:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Sayers X-Patchwork-Id: 50714 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:a742:0:b0:482:c625:d099 with SMTP id f2csp2672380vqm; Tue, 23 Jul 2024 07:42:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUBc4qN+PG03DKRyKzDkMAhDHxEPjWxawgO5vF7xhsmu5Xvy48/sWq6aLPqSimpeoW1iJx58siaXztD6A7Mt1hAk9piAYl6R/GdRQ== X-Google-Smtp-Source: AGHT+IH9mkzS3a/LVf1vGllIEpE8VVhZUmeTfQaAnBmu2uq1yAeekJf7WrBb/K1r/g8KYxlv6exU X-Received: by 2002:a17:907:3ea1:b0:a77:dbf0:d22 with SMTP id a640c23a62f3a-a7a4c580e93mr744645066b.65.1721745773185; Tue, 23 Jul 2024 07:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721745773; cv=none; d=google.com; s=arc-20160816; b=P6gdc1eWS1jbhh0RVuprlTLAAPyNotrO8Trx8fdsjVhMaDzaf0YA5keN0LdlE0ftiC virIiOVOEW3uOc113cjduhPCvhnrfBliJBGC5FC+fZaDWycX0ef370NguVIBHeEvJzrK so6L6tAl2HGuNZCUylJBWlHjzbQFKJdEkvo+3/Qj9j/XWK1t1DYktCFQ/dECWbsqQCsM d4fv6fpA/uaQQTn6i7MhEhnwizGfvD6FOr2CM9Kbb9vIzuxDp9WGKOsYjuGoLKTNrU9H ywYuh40lKvu+wk1evaVrq8QTa/S4BCItrx2dGhsURJ0q/3eQZgtTXA3W36LOj1FUL7ox dEaw== 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:references:in-reply-to :message-id:date:to:from:delivered-to; bh=Ff7uGkMpEzeg53taaW2Pqzpsk9iR+RTUUCAzHjtpjzw=; fh=73ExZnkQ8FYbu/qeQNmI0dtHCfShNh8/NmZJs1umltM=; b=jR+3R/29l3hkkXHlnPGc8iL30t3KbPO/0QLzCE5HYBY3oJLVv0p2WDtH7bdNMCUjFL wdkEV92dARCQYHppTX1q/shliSqZxNtC6tyW5IJ00UvbQkDz2uQOs9/5va1iU/mxstAB lF+vdCcx7t36Er9W96vzKw1+bpdwbnHCZfBDd3hYUmvMgx5H9m9ZFmapE4u9XeOE/Fzi wn3fJqvTz1l8SLexajhXJbBC40cnpFjuLKS2c1BFKf3l6/H8Q1TKKPm8LDXxXnYR2dyb A8calqrwAXehEXvwCA7cZlEB6rC4d0cE5Ix4KQOAUlJpC/VdkFvV4or+GrVAV5rBnROV KUwA==; dara=google.com 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 a640c23a62f3a-a7a3c954c63si527857966b.829.2024.07.23.07.42.52; Tue, 23 Jul 2024 07:42:53 -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 9135568D41F; Tue, 23 Jul 2024 17:42:48 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from b-painless.mh.aa.net.uk (b-painless.mh.aa.net.uk [81.187.30.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 01CDC68CFBE for ; Tue, 23 Jul 2024 17:42:41 +0300 (EEST) Received: from 0.b.4.b.7.4.0.8.c.4.a.5.d.8.b.2.0.5.8.0.9.1.8.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:819:850:2b8d:5a4c:8047:b4b0] helo=andrews-2024-laptop.lan) by painless-b.tch.aa.net.uk with esmtp (Exim 4.96) (envelope-from ) id 1sWGiv-006S7m-1U; Tue, 23 Jul 2024 15:42:41 +0100 From: Andrew Sayers To: ffmpeg-devel@ffmpeg.org Date: Tue, 23 Jul 2024 15:42:32 +0100 Message-ID: <20240723144232.308100-1-ffmpeg-devel@pileofstuff.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4] avfilter: fix data type for {Tile, Untile}Context's image size 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: Andrew Sayers Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: TZFSsSltBDrj These are accessed as AV_OPT_TYPE_IMAGE_SIZE AVOptions, so must be implemented as (signed) int's --- libavfilter/vf_tile.c | 2 +- libavfilter/vf_untile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_tile.c b/libavfilter/vf_tile.c index b45e739bb6..95ac3a1992 100644 --- a/libavfilter/vf_tile.c +++ b/libavfilter/vf_tile.c @@ -34,7 +34,7 @@ typedef struct TileContext { const AVClass *class; - unsigned w, h; + int w, h; unsigned margin; unsigned padding; unsigned overlap; diff --git a/libavfilter/vf_untile.c b/libavfilter/vf_untile.c index f32f3e186b..bfc0998b46 100644 --- a/libavfilter/vf_untile.c +++ b/libavfilter/vf_untile.c @@ -28,7 +28,7 @@ typedef struct UntileContext { const AVClass *class; - unsigned w, h; + int w, h; unsigned current; unsigned nb_frames; AVFrame *frame;