aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-05-31 11:37:11 +0200
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-06-07 10:18:11 +0200
commitf2e7f9966e3d48ff739d77e40792f4ab8ce43deb (patch)
tree290f30e90bce89923ca614f68e357f2d999595c7
parent153ab83bd37cbbcc79d8303cc6efbf81089b8123 (diff)
downloadffmpeg-f2e7f9966e3d48ff739d77e40792f4ab8ce43deb.tar.gz
lavc/mediacodec: do not delete a local reference twice in case of error
-rw-r--r--libavcodec/mediacodec_wrapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 053c164e3f..c847a11d44 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -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) {