25#include "libavcodec/jni.h"
26#include "libavutil/bprint.h"
48 jstring *tempArray = NULL;
49 int argumentCount = 1;
56 int programArgumentCount = (*env)->GetArrayLength(env, stringArray);
57 argumentCount = programArgumentCount + 1;
59 tempArray = (jstring *) av_malloc(
sizeof(jstring) * programArgumentCount);
66 argv = (
char **)av_malloc(
sizeof(
char*) * (argumentCount));
67 argv[0] = (
char *)av_malloc(
sizeof(
char) * (strlen(
LIB_NAME) + 1));
72 for (
int i = 0; i < (argumentCount - 1); i++) {
73 tempArray[i] = (jstring) (*env)->GetObjectArrayElement(env, stringArray, i);
74 if (tempArray[i] != NULL) {
75 argv[i + 1] = (
char *) (*env)->GetStringUTFChars(env, tempArray[i], 0);
94 for (
int i = 0; i < (argumentCount - 1); i++) {
95 (*env)->ReleaseStringUTFChars(env, tempArray[i], argv[i + 1]);
JNIEXPORT jint JNICALL Java_com_arthenica_ffmpegkit_FFmpegKitConfig_nativeFFprobeExecute(JNIEnv *env, jclass object, jlong id, jobjectArray stringArray)
int ffprobe_execute(int argc, char **argv)
void removeSession(long sessionId)
void addSession(long sessionId)
void resetMessagesInTransmit(long sessionId)
__thread volatile long globalSessionId