From 1c61aa1a02d66c2abf8365aae558fd5782c7a594 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Sun, 17 Sep 2023 11:29:44 +0800 Subject: [PATCH] avcodec/jni: make global variables static Reviewed-by: Matthieu Bouron Signed-off-by: Zhao Zhili --- libavcodec/jni.c | 4 ++-- 1 file 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) {