aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2016-08-02 20:47:55 -0700
committerTimothy Gu <timothygu99@gmail.com>2016-08-02 22:33:03 -0700
commit327033d913f782c25a585115a0135842ef8aa5e0 (patch)
tree10543357059d7ed6c1ed0703eb929a6a8b45e30c
parent9a345b235fbd6dd48030b192b2292b1806f8d600 (diff)
downloadffmpeg-327033d913f782c25a585115a0135842ef8aa5e0.tar.gz
jni: Return ENOSYS on unsupported platforms
-rw-r--r--libavcodec/jni.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/jni.c b/libavcodec/jni.c
index 32456f59fb..85dcf2abaf 100644
--- a/libavcodec/jni.c
+++ b/libavcodec/jni.c
@@ -20,19 +20,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+
#include <stdlib.h>
-#include "config.h"
+#include "libavutil/error.h"
#include "jni.h"
#if CONFIG_JNI
-
-#include <errno.h>
#include <jni.h>
#include <pthread.h>
#include "libavutil/log.h"
-#include "libavutil/error.h"
#include "ffjni.h"
void *java_vm;
@@ -69,7 +68,7 @@ void *av_jni_get_java_vm(void *log_ctx)
int av_jni_set_java_vm(void *vm, void *log_ctx)
{
- return 0;
+ return AVERROR(ENOSYS);
}
void *av_jni_get_java_vm(void *log_ctx)