|
|
@ -767,9 +767,7 @@ cleanup: |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
extern "C" |
|
|
|
extern "C" { |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
VIDEO_PLAYER_FUNC(int, audioResample, jstring srcFile, jstring dstFile, int sampleRate) { |
|
|
|
VIDEO_PLAYER_FUNC(int, audioResample, jstring srcFile, jstring dstFile, int sampleRate) { |
|
|
|
const char *src_file = env->GetStringUTFChars(srcFile, JNI_FALSE); |
|
|
|
const char *src_file = env->GetStringUTFChars(srcFile, JNI_FALSE); |
|
|
|
const char *dst_file = env->GetStringUTFChars(dstFile, JNI_FALSE); |
|
|
|
const char *dst_file = env->GetStringUTFChars(dstFile, JNI_FALSE); |
|
|
@ -778,6 +776,3 @@ VIDEO_PLAYER_FUNC(int, audioResample, jstring srcFile, jstring dstFile, int samp |
|
|
|
env->ReleaseStringUTFChars(srcFile, src_file); |
|
|
|
env->ReleaseStringUTFChars(srcFile, src_file); |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
#ifdef __cplusplus |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|