[FFmpeg-cvslog] avcodec/mediacodec_surface: drop unnecessary local variable
Aman Gupta
git at videolan.org
Mon Sep 9 23:26:25 EEST 2019
ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Mon Sep 9 13:20:41 2019 -0700| [35b0e75b545dbf81a8372413dcb0002b826eb94f] | committer: Aman Gupta
avcodec/mediacodec_surface: drop unnecessary local variable
Signed-off-by: Aman Gupta <aman at tmm1.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=35b0e75b545dbf81a8372413dcb0002b826eb94f
---
libavcodec/mediacodec_surface.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/libavcodec/mediacodec_surface.c b/libavcodec/mediacodec_surface.c
index aada1ecebe..26724d3574 100644
--- a/libavcodec/mediacodec_surface.c
+++ b/libavcodec/mediacodec_surface.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list