summaryrefslogtreecommitdiff
path: root/libavcodec/mediacodec_wrapper.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2019-04-26 10:32:31 +0200
committerMatthieu Bouron <matthieu.bouron@gmail.com>2019-07-22 08:57:33 +0200
commit817235b195f55746893629bd8e6fa3501ea7b38e (patch)
tree161acee61fefeb63246fad41b85c44409695e130 /libavcodec/mediacodec_wrapper.c
parent3f232d713db3cb665c265387c7009904c2e85e58 (diff)
avcodec/mediacodec_wrapper: remove unused local variables in ff_AMediaCodec_getCodecNameByType()
Diffstat (limited to 'libavcodec/mediacodec_wrapper.c')
-rw-r--r--libavcodec/mediacodec_wrapper.c10
1 files changed, 0 insertions, 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);
}