25#include "libavcodec/jni.h"
26#include "libavutil/bprint.h"
27#include "libavutil/mem.h"
49 jstring *tempArray = NULL;
50 int argumentCount = 1;
57 int programArgumentCount = (*env)->GetArrayLength(env, stringArray);
58 argumentCount = programArgumentCount + 1;
60 tempArray = (jstring *) av_malloc(
sizeof(jstring) * programArgumentCount);
67 argv = (
char **)av_malloc(
sizeof(
char*) * (argumentCount));
68 argv[0] = (
char *)av_malloc(
sizeof(
char) * (strlen(
LIB_NAME) + 1));
73 for (
int i = 0; i < (argumentCount - 1); i++) {
74 tempArray[i] = (jstring) (*env)->GetObjectArrayElement(env, stringArray, i);
75 if (tempArray[i] != NULL) {
76 argv[i + 1] = (
char *) (*env)->GetStringUTFChars(env, tempArray[i], 0);
95 for (
int i = 0; i < (argumentCount - 1); i++) {
96 (*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)
__thread long globalSessionId
void resetMessagesInTransmit(long sessionId)