]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mediacodec_surface.c
avcodec/ljpegenc: Allow full range yuv420p, yuv422p, yuv444p by default
[ffmpeg] / libavcodec / mediacodec_surface.c
index 26724d3574b14d55a1556d535f3b0321c0091fe3..09a42295d2fc473550d0acba32ab0c052b4fd68d 100644 (file)
@@ -25,7 +25,7 @@
 #include "ffjni.h"
 #include "mediacodec_surface.h"
 
-void *ff_mediacodec_surface_ref(void *surface, void *log_ctx)
+FFANativeWindow *ff_mediacodec_surface_ref(void *surface, void *log_ctx)
 {
     JNIEnv *env = NULL;
 
@@ -37,7 +37,7 @@ void *ff_mediacodec_surface_ref(void *surface, void *log_ctx)
     return (*env)->NewGlobalRef(env, surface);
 }
 
-int ff_mediacodec_surface_unref(void *surface, void *log_ctx)
+int ff_mediacodec_surface_unref(FFANativeWindow *window, void *log_ctx)
 {
     JNIEnv *env = NULL;
 
@@ -46,7 +46,7 @@ int ff_mediacodec_surface_unref(void *surface, void *log_ctx)
         return AVERROR_EXTERNAL;
     }
 
-    (*env)->DeleteGlobalRef(env, surface);
+    (*env)->DeleteGlobalRef(env, window);
 
     return 0;
 }