[FFmpeg-devel] [PATCH 2/2] avcodec/jni: make global variables static

Matthieu Bouron matthieu.bouron at gmail.com
Sun Sep 17 11:53:18 EEST 2023


On Sun, Sep 17, 2023 at 5:38 AM Zhao Zhili <quinkblack at foxmail.com> wrote:

> From: Zhao Zhili <zhilizhao at tencent.com>
>
> Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> ---
>  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)
>  {
> --
> 2.34.1
>
>
LGTM.

Thanks,
Matthieu


More information about the ffmpeg-devel mailing list