From 025f75c3ad1a4efc013bf3656b78952480fb90f7 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Fri, 9 Sep 2016 14:27:33 +0200 Subject: [PATCH] lavc/ffjni: do not error out if the last non-mandatory field/method cannot be found --- libavcodec/ffjni.c | 2 ++ 1 file changed, 2 insertions(+) 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; } }