diff mbox series

[FFmpeg-devel,4/7] avutil/jni: use size_t to store structure offsets

Message ID 20240213230418.457056-5-matthieu.bouron@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/7] avcodec: move ffjni to avutil/jniutils | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Matthieu Bouron Feb. 13, 2024, 10:50 p.m. UTC
---
 libavutil/jniutils.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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;
 };