1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

This commit is contained in:
Matthieu Bouron 2016-05-31 11:37:11 +02:00
parent 153ab83bd3
commit f2e7f9966e

View File

@ -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) {