Commit f2e7f996 authored by Matthieu Bouron's avatar Matthieu Bouron

lavc/mediacodec: do not delete a local reference twice in case of error

parent 153ab83b
......@@ -122,6 +122,7 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int width, int hei
goto done;
}
(*env)->DeleteLocalRef(env, tmp);
tmp = NULL;
codec = (*env)->NewObject(env, jfields.mediacodec_list_class, jfields.init_id, 0);
if (ff_jni_exception_check(env, 1, log_ctx) < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment