static int check_jni_invocation(void *log_ctx)

{

    int ret = AVERROR_EXTERNAL;

    void *handle = NULL;

    void **jni_invocation = NULL;



    handle = dlopen(NULL, RTLD_LOCAL);

    if (!handle) {

        goto done;

    }



    jni_invocation = (void **)dlsym(handle, "_ZN13JniInvocation15jni_invocation_E");

    if (!jni_invocation) {

        av_log(log_ctx, AV_LOG_ERROR, "Could not find JniInvocation::jni_invocation_ symbol\n");

        goto done;

    }



    ret = !(jni_invocation != NULL && *jni_invocation != NULL);



done:

    if (handle) {

        dlclose(handle);

    }



    return ret;

}

static int check_jni_invocation(void *log_ctx)

{

    int ret = AVERROR_EXTERNAL;

    void *handle = NULL;

    void **jni_invocation = NULL;



    handle = dlopen(NULL, RTLD_LOCAL);

    if (!handle) {

        goto done;

    }



    jni_invocation = (void **)dlsym(handle, "_ZN13JniInvocation15jni_invocation_E");

    if (!jni_invocation) {

        av_log(log_ctx, AV_LOG_ERROR, "Could not find JniInvocation::jni_invocation_ symbol\n");

        goto done;

    }



    ret = !(jni_invocation != NULL && *jni_invocation != NULL);



done:

    if (handle) {

        dlclose(handle);

    }



    return ret;

}

static int FUNC_0(void *VAR_0)

{

    int VAR_1 = AVERROR_EXTERNAL;

    void *VAR_2 = NULL;

    void **VAR_3 = NULL;



    VAR_2 = dlopen(NULL, RTLD_LOCAL);

    if (!VAR_2) {

        goto done;

    }



    VAR_3 = (void **)dlsym(VAR_2, "_ZN13JniInvocation15jni_invocation_E");

    if (!VAR_3) {

        av_log(VAR_0, AV_LOG_ERROR, "Could not find JniInvocation::jni_invocation_ symbol\n");

        goto done;

    }



    VAR_1 = !(VAR_3 != NULL && *VAR_3 != NULL);



done:

    if (VAR_2) {

        dlclose(VAR_2);

    }



    return VAR_1;

}

static int FUNC_0(void *VAR_0)
{ int VAR_1 = AVERROR_EXTERNAL; void *VAR_2 = NULL; void **VAR_3 = NULL; VAR_2 = dlopen(NULL, RTLD_LOCAL); if (!VAR_2) { goto done; } VAR_3 = (void **)dlsym(VAR_2, "_ZN13JniInvocation15jni_invocation_E"); if (!VAR_3) { av_log(VAR_0, AV_LOG_ERROR, "Could not find JniInvocation::jni_invocation_ symbol\n"); goto done; } VAR_1 = !(VAR_3 != NULL && *VAR_3 != NULL); done:
if (VAR_2) { dlclose(VAR_2); } return VAR_1; }