Browse code

lavc/ffjni: do not error out if the last non-mandatory field/method cannot be found

Matthieu Bouron authored on 2016/09/09 21:27:33
Showing 1 changed files
... ...
@@ -352,6 +352,8 @@ int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfi
352 352
                 ret = AVERROR(EINVAL);
353 353
                 goto done;
354 354
             }
355
+
356
+            ret = 0;
355 357
         }
356 358
     }
357 359