[FFmpeg-cvslog] avcodec/mediacodec_wrapper: remove unused local variables in ff_AMediaCodec_getCodecNameByType()

Matthieu Bouron git at videolan.org
Fri Jul 26 19:30:38 EEST 2019


ffmpeg | branch: release/4.2 | Matthieu Bouron <matthieu.bouron at gmail.com> | Fri Apr 26 10:32:31 2019 +0200| [1df4a99e892f65e3d1554a343b946313d7fee18c] | committer: Matthieu Bouron

avcodec/mediacodec_wrapper: remove unused local variables in ff_AMediaCodec_getCodecNameByType()

(cherry picked from commit 817235b195f55746893629bd8e6fa3501ea7b38e)

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

 libavcodec/mediacodec_wrapper.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 70e1e7cae1..5213cf640a 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -392,8 +392,6 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e
     struct JNIAMediaCodecListFields jfields = { 0 };
     struct JNIAMediaFormatFields mediaformat_jfields = { 0 };
 
-    jobject format = NULL;
-    jobject codec = NULL;
     jobject codec_name = NULL;
 
     jobject info = NULL;
@@ -571,14 +569,6 @@ done_with_info:
     }
 
 done:
-    if (format) {
-        (*env)->DeleteLocalRef(env, format);
-    }
-
-    if (codec) {
-        (*env)->DeleteLocalRef(env, codec);
-    }
-
     if (codec_name) {
         (*env)->DeleteLocalRef(env, codec_name);
     }



More information about the ffmpeg-cvslog mailing list