[FFmpeg-devel] [PATCH v2 3/6] avutil/jni: use size_t to store structure offsets
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Mon Mar 4 22:10:49 EET 2024
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 <jni.h>
> +#include <stdlib.h>
>
stddef.h is the "cheaper" header for size_t.
> /*
> * 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;
>
> };
More information about the ffmpeg-devel
mailing list