From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id DF8A9429AA for ; Sat, 9 Apr 2022 20:18:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3118068B2FC; Sat, 9 Apr 2022 23:18:47 +0300 (EEST) Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9A2B168B0B4 for ; Sat, 9 Apr 2022 23:18:40 +0300 (EEST) Received: by mail-oi1-f181.google.com with SMTP id b188so12169417oia.13 for ; Sat, 09 Apr 2022 13:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=HUbtmlaQRF1pOr+sxZGaoitBkyPXncwz012StNGiBsY=; b=nckbgVLcTazxkdUj8+KAlovgcPhOrZCUq/h3Fd1gH7g0vnexYhz+xPAQPkKdqUC9wI 5Ko/DAy4XA6Jykrn1p3g9EZOqgm6KIdHmBdpizvT4nfJ7HjJpkW+CDZqcdH2U1Ill6Dk 45M/jLJrYagP49uXMuQ6gEzKQ6TkerBlqtKpKkbo8dZ29SlVmFJU5YNy1heWQOZN6Aen KjlR1AiYBLaI4fcjqiPziCTTFSnykxfIWuBdhtjAYr5ONnbI18PqC0Xqwi76aiGlNTYQ DndoE3p3JgMMNee9PiQmRzOpjUO6yC/wGddIYMHJbg9tXt7l95ycoOWrUx9gk0P7m9ZR UyfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=HUbtmlaQRF1pOr+sxZGaoitBkyPXncwz012StNGiBsY=; b=qaf5GA5vQiXxc36i7/evNVB3XnWF08THeWmt1vVgt13s5CMvhpceByzc57r50vMzar ntQE8cjLMs098D5+VWi5bWCqJi0pL2dBCe+uQbxGWGRskQunfDkBoOYUOFPbIMGR5Bd9 VdIJKN++NMXs8PdlVFkPzJLbAS4XVZ+U3NRbaK9Y4XOxoOiarYIwN2oewmt8on40IOyg k95bqlZMIbGbV4Xickoku9HAdEYBrsdEhVr2idL0cEiXSn9LLw27E+udFU5Gk2rIp8gp QVd3Ozdzxrel81wrEsGbD4cpOJ+slbEYUyXVhKhR4UB/hJo1nqtYrjbHjZDhf9U17Lf4 bTWQ== X-Gm-Message-State: AOAM530dZ0rQhRMVegdtWVtzynKV4sYF3UjtXDP+U8ZkpPpisWB6Jlxt qmEfbbnoplkxTguLSfynhGi+z5TNrJ8= X-Google-Smtp-Source: ABdhPJzxP20JkpNYWPH4bYRvcSy1J3o3xZBsh7qw3moyi275aByf2x6Bxh+h99EV6Z8eLCHD7YyXDg== X-Received: by 2002:aca:180b:0:b0:2f7:23ae:8cd1 with SMTP id h11-20020aca180b000000b002f723ae8cd1mr2379677oih.146.1649535518684; Sat, 09 Apr 2022 13:18:38 -0700 (PDT) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id z10-20020a0568301daa00b005ce0f36dd81sm10383933oti.12.2022.04.09.13.18.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Apr 2022 13:18:38 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 9 Apr 2022 17:18:13 -0300 Message-Id: <20220409201813.8481-1-jamrial@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avfilter/vf_drawbox: remove redefinition of DrawBoxContext typedef 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Old GCC and Clang apparently don't like it. Signed-off-by: James Almer --- Untested since i don't have old compilers. See http://fate.ffmpeg.org/report.cgi?time=20220409194302&slot=x86_64-netbsd-clang-noopt http://fate.ffmpeg.org/report.cgi?time=20220409194413&slot=x86_64-netbsd-gcc34 http://fate.ffmpeg.org/report.cgi?time=20220409200245&slot=x86_64-openbsd5.6-gcc4.2-conf2 http://fate.ffmpeg.org/report.cgi?time=20220409040143&slot=armel5tej-qemu-debian-gcc4.4 Clang 3 even says "redefinition of typedef 'DrawBoxContext' is invalid in C", but newer Clang compiles it fine. libavfilter/vf_drawbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_drawbox.c b/libavfilter/vf_drawbox.c index a4fe0b8abd..65bd039d65 100644 --- a/libavfilter/vf_drawbox.c +++ b/libavfilter/vf_drawbox.c @@ -73,9 +73,9 @@ enum var_name { VARS_NB }; -typedef struct DrawBoxContext DrawBoxContext; +struct DrawBoxContext; -typedef int (*PixelBelongsToRegion)(DrawBoxContext *s, int x, int y); +typedef int (*PixelBelongsToRegion)(struct DrawBoxContext *s, int x, int y); typedef struct DrawBoxContext { const AVClass *class; @@ -96,7 +96,7 @@ typedef struct DrawBoxContext { int step; enum AVFrameSideDataType box_source; - void (*draw_region)(AVFrame *frame, DrawBoxContext *ctx, int left, int top, int right, int down, + void (*draw_region)(AVFrame *frame, struct DrawBoxContext *ctx, int left, int top, int right, int down, PixelBelongsToRegion pixel_belongs_to_region); } DrawBoxContext; -- 2.35.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".