[FFmpeg-cvslog] lavc/mediacodec: do not delete a local reference twice in case of error

Matthieu Bouron git at videolan.org
Tue Jun 7 10:31:52 CEST 2016


ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at stupeflix.com> | Tue May 31 11:37:11 2016 +0200| [f2e7f9966e3d48ff739d77e40792f4ab8ce43deb] | committer: Matthieu Bouron

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f2e7f9966e3d48ff739d77e40792f4ab8ce43deb
---

 libavcodec/mediacodec_wrapper.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 053c164..c847a11 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) {



More information about the ffmpeg-cvslog mailing list