Browse Source

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

tags/n3.1
Matthieu Bouron 9 years ago
parent
commit
f2e7f9966e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/mediacodec_wrapper.c

+ 1
- 0
libavcodec/mediacodec_wrapper.c View File

@@ -122,6 +122,7 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int width, int hei
goto done; goto done;
} }
(*env)->DeleteLocalRef(env, tmp); (*env)->DeleteLocalRef(env, tmp);
tmp = NULL;


codec = (*env)->NewObject(env, jfields.mediacodec_list_class, jfields.init_id, 0); codec = (*env)->NewObject(env, jfields.mediacodec_list_class, jfields.init_id, 0);
if (ff_jni_exception_check(env, 1, log_ctx) < 0) { if (ff_jni_exception_check(env, 1, log_ctx) < 0) {


Loading…
Cancel
Save