avcodec/mediacodec_surface: drop unnecessary local variable

Signed-off-by: Aman Gupta <aman@tmm1.net>
pull/322/head
Aman Gupta 5 years ago
parent d0e6762768
commit 35b0e75b54
  1. 6
      libavcodec/mediacodec_surface.c

@ -29,16 +29,12 @@ void *ff_mediacodec_surface_ref(void *surface, void *log_ctx)
{ {
JNIEnv *env = NULL; JNIEnv *env = NULL;
void *reference = NULL;
env = ff_jni_get_env(log_ctx); env = ff_jni_get_env(log_ctx);
if (!env) { if (!env) {
return NULL; return NULL;
} }
reference = (*env)->NewGlobalRef(env, surface); return (*env)->NewGlobalRef(env, surface);
return reference;
} }
int ff_mediacodec_surface_unref(void *surface, void *log_ctx) int ff_mediacodec_surface_unref(void *surface, void *log_ctx)

Loading…
Cancel
Save