[FFmpeg-devel] [PATCH 4/7] avutil/jni: use size_t to store structure offsets
Matthieu Bouron
matthieu.bouron at gmail.com
Wed Feb 14 00:50:12 EET 2024
---
libavutil/jniutils.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavutil/jniutils.h b/libavutil/jniutils.h
index 2be401c974..01f3acb88d 100644
--- a/libavutil/jniutils.h
+++ b/libavutil/jniutils.h
@@ -24,6 +24,7 @@
#define AVUTIL_JNIUTILS_H
#include <jni.h>
+#include <stdlib.h>
/*
* Attach permanently a JNI environment to the current thread and retrieve it.
@@ -102,7 +103,7 @@ struct FFJniField {
const char *method;
const char *signature;
enum FFJniFieldType type;
- int offset;
+ size_t offset;
int mandatory;
};
--
2.43.1
More information about the ffmpeg-devel
mailing list