aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2023-09-17 11:29:44 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-09-19 00:41:08 +0800
commit1c61aa1a02d66c2abf8365aae558fd5782c7a594 (patch)
treef8b25e7db6c6a71a19c95d7385ecadc861d0df86
parenteb96dda5ede46550af8a9fce77fea20a00838a83 (diff)
downloadffmpeg-1c61aa1a02d66c2abf8365aae558fd5782c7a594.tar.gz
avcodec/jni: make global variables static
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r--libavcodec/jni.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/jni.c b/libavcodec/jni.c
index 85dcf2abaf..ae6490de9d 100644
--- a/libavcodec/jni.c
+++ b/libavcodec/jni.c
@@ -34,8 +34,8 @@
#include "libavutil/log.h"
#include "ffjni.h"
-void *java_vm;
-pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
+static void *java_vm;
+static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
int av_jni_set_java_vm(void *vm, void *log_ctx)
{