summaryrefslogtreecommitdiff
path: root/libavcodec/ffjni.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-09-09 14:27:33 +0200
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-09-12 09:56:37 +0200
commit025f75c3ad1a4efc013bf3656b78952480fb90f7 (patch)
tree49accad6467409f7c69281c876448a12e0b4bbc2 /libavcodec/ffjni.c
parentbc7066fd5dcfa33264e9e846284f422224d80dd6 (diff)
lavc/ffjni: do not error out if the last non-mandatory field/method cannot be found
Diffstat (limited to 'libavcodec/ffjni.c')
-rw-r--r--libavcodec/ffjni.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ffjni.c b/libavcodec/ffjni.c
index 13eabb0033..0597400ba6 100644
--- a/libavcodec/ffjni.c
+++ b/libavcodec/ffjni.c
@@ -352,6 +352,8 @@ int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfi
ret = AVERROR(EINVAL);
goto done;
}
+
+ ret = 0;
}
}