Skip to content

Commit

Permalink
avcodec/mediacodec_wrapper: remove unused local variables in ff_AMedi…
Browse files Browse the repository at this point in the history
…aCodec_getCodecNameByType()
  • Loading branch information
mbouron committed Jul 22, 2019
1 parent 3f232d7 commit 817235b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions libavcodec/mediacodec_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -571,14 +569,6 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e
}

done:
if (format) {
(*env)->DeleteLocalRef(env, format);
}

if (codec) {
(*env)->DeleteLocalRef(env, codec);
}

if (codec_name) {
(*env)->DeleteLocalRef(env, codec_name);
}
Expand Down

0 comments on commit 817235b

Please sign in to comment.