Commit 35b0e75b authored by Aman Gupta's avatar Aman Gupta

avcodec/mediacodec_surface: drop unnecessary local variable

Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
parent d0e67627
......@@ -29,16 +29,12 @@ void *ff_mediacodec_surface_ref(void *surface, void *log_ctx)
{
JNIEnv *env = NULL;
void *reference = NULL;
env = ff_jni_get_env(log_ctx);
if (!env) {
return NULL;
}
reference = (*env)->NewGlobalRef(env, surface);
return reference;
return (*env)->NewGlobalRef(env, surface);
}
int ff_mediacodec_surface_unref(void *surface, void *log_ctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment