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 50D4F49C0D for ; Tue, 5 Mar 2024 07:58:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4ABEE68CD3F; Tue, 5 Mar 2024 09:58:36 +0200 (EET) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4588468CA47 for ; Tue, 5 Mar 2024 09:58:30 +0200 (EET) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-412e84e87e6so8749345e9.2 for ; Mon, 04 Mar 2024 23:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709625509; x=1710230309; darn=ffmpeg.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=h93nlVZWrowRpp++xgRgpfa6h6bHy1ItHU38YQqDt+A=; b=ej4wii7/ZUP4JjygoTwstpFuu7c7p3IxM910xieO/ltel/HDrYKJWybRG7eJsFDSZD AS3Ff3zWBWAOBGqHPquZLHFGFattyAuTOUEEDHFswU3h848xFaRrvjLtjPnnG5aCYhHW mDXa8ET777fNd40LDFsdzCPV3JgrVBPEH90qtnEOnPltTu2vxlPPwD+gxVa/Ydxqg0BB YPcKm+X+hvZcY8FIIhhhiI8k265Y8USsJjBtEwGEBEX4Q4gnJjsz5VN+MP3ayKW+2qJG y1hzO7lNT878mzuryBJ89S03trz1GyoRR93j2B8JghDk6cXaWaqwrPm70MM4jn1AEcHp yfCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709625509; x=1710230309; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h93nlVZWrowRpp++xgRgpfa6h6bHy1ItHU38YQqDt+A=; b=HB4ToymOG2yfzNFtkpDEu+ZqAiCL8zJv6xFCruE4Iace07hRdOfErMc5Kx+NSvGAzd EyYpaGEu2HHbJJVFfAeugapXt+DdKTNJ/bFWbt2EKCaqc61AypiRLA/3sKDjaLQS5jrB h0mj8gWiW4ARM3dMwhYoHZSV4cr8V6DITYbuXLtRE5x/QkM99FFuZ7/jS0NxnScGMfa6 yYUwtiS94lW31+i01WH5uTN5ZYUgPVPisBU3t2V3JjYEM0D/QEarloRLKzaryXIHy9Uf h+zrKg7sfgRtRynpZ0DyBgVhdKfvZQHsEE/qDiUWuc0PuP7a0noc5ujn8SxdhIIPuNcB es/g== X-Gm-Message-State: AOJu0Yz1OS1ij8nbuv5/o6WlxnhifdbC+95/HuTH2Ysb7vpSOIPXQ4lp bxaStt2lgxk/EN9b0qjQLd422uTopEviw3qbfTJ92lVc0PrwmzKgtN16TtbE X-Google-Smtp-Source: AGHT+IFgw9RaKLUhVMjE5Ljlm4L2esdlhHT3w/M7G7uRRg5jrdFKeqIFVMUptE9cBXjDWtUsUdOZig== X-Received: by 2002:adf:fc8e:0:b0:33d:4966:fa8f with SMTP id g14-20020adffc8e000000b0033d4966fa8fmr9459096wrr.46.1709625509395; Mon, 04 Mar 2024 23:58:29 -0800 (PST) Received: from kusa (2a01cb040b6872000000000000000afa.ipv6.abo.wanadoo.fr. [2a01:cb04:b68:7200::afa]) by smtp.gmail.com with ESMTPSA id j12-20020adfea4c000000b0033e11bd9febsm13783310wrn.90.2024.03.04.23.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 23:58:28 -0800 (PST) Date: Tue, 5 Mar 2024 08:58:26 +0100 From: Matthieu Bouron To: FFmpeg development discussions and patches Message-ID: References: <20240213230418.457056-1-matthieu.bouron@gmail.com> <20240227145536.281991-1-matthieu.bouron@gmail.com> <20240227145536.281991-4-matthieu.bouron@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="tzIIGZNA2gajZ6dO" Content-Disposition: inline In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH v2 3/6] avutil/jni: use size_t to store structure offsets 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" Archived-At: List-Archive: List-Post: --tzIIGZNA2gajZ6dO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Mon, Mar 04, 2024 at 09:10:49PM +0100, Andreas Rheinhardt wrote: > Matthieu Bouron: > > --- > > libavcodec/ffjni.h | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/libavcodec/ffjni.h b/libavcodec/ffjni.h > > index 6027bac0ab..d5894609ed 100644 > > --- a/libavcodec/ffjni.h > > +++ b/libavcodec/ffjni.h > > @@ -24,6 +24,7 @@ > > #define AVCODEC_FFJNI_H > > > > #include > > +#include > > > > stddef.h is the "cheaper" header for size_t. New patch attached. --tzIIGZNA2gajZ6dO Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="v3-0003-avcodec-jni-use-size_t-to-store-structure-offsets.patch" >From 0a5f890dcbedf87da3df5b49ece545a847e423a4 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Tue, 13 Feb 2024 11:03:22 +0100 Subject: [PATCH v3 3/6] avcodec/jni: use size_t to store structure offsets --- libavcodec/ffjni.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/ffjni.h b/libavcodec/ffjni.h index 6027bac0ab..d1e86f8329 100644 --- a/libavcodec/ffjni.h +++ b/libavcodec/ffjni.h @@ -24,6 +24,7 @@ #define AVCODEC_FFJNI_H #include +#include /* * Attach permanently a JNI environment to the current thread and retrieve it. @@ -105,7 +106,7 @@ struct FFJniField { const char *method; const char *signature; enum FFJniFieldType type; - int offset; + size_t offset; int mandatory; }; -- 2.44.0 --tzIIGZNA2gajZ6dO Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --tzIIGZNA2gajZ6dO--