avcodec/jni: make global variables static

Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili 2023-09-17 11:29:44 +08:00
parent eb96dda5ed
commit 1c61aa1a02
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{