We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No description provided.
The text was updated successfully, but these errors were encountered:
```cpp #include <jni.h> #include <string> #include "android/log.h" extern "C"{ #include "ffmpeg.h" #include "libavcodec/jni.h" } #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG , "ffmpeg-cmd", __VA_ARGS__) extern "C" JNIEXPORT jint JNICALL Java_com_coder_ffmpeg_jni_FFmpegCmd_run(JNIEnv *env, jclass type, jint cmdLen, jobjectArray cmd) { //set java vm JavaVM *jvm = NULL; env->GetJavaVM(&jvm); av_jni_set_java_vm(jvm, NULL); char *argCmd[cmdLen] ; jstring buf[cmdLen]; for (int i = 0; i < cmdLen; ++i) { buf[i] = static_cast<jstring>(env->GetObjectArrayElement(cmd, i)); char *string = const_cast<char *>(env->GetStringUTFChars(buf[i], JNI_FALSE)); argCmd[i] = string; LOGD("argCmd=%s",argCmd[i]); } int retCode = run(cmdLen, argCmd); LOGD("ffmpeg-invoke: retCode=%d",retCode); return retCode; } extern "C" JNIEXPORT jint JNICALL Java_com_coder_ffmpeg_jni_FFmpegCmd_getProgress(JNIEnv *env, jclass type) { return get_progress(); }
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: