summaryrefslogtreecommitdiffstats
path: root/libavcodec/mediacodec_wrapper.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-03-11 17:21:04 +0100
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-07-08 17:02:37 +0200
commit0f2654c9a3eac1fd856a393047aacc4575620ecd (patch)
tree1da25de6aaae1c88db472fe3879b6de2ca2d2e85 /libavcodec/mediacodec_wrapper.c
parent83a940e7fb9640954d631870e2ec6e8b3fc528ed (diff)
downloadffmpeg-streaming-0f2654c9a3eac1fd856a393047aacc4575620ecd.zip
ffmpeg-streaming-0f2654c9a3eac1fd856a393047aacc4575620ecd.tar.gz
lavc: add mediacodec hwaccel support
Diffstat (limited to 'libavcodec/mediacodec_wrapper.c')
-rw-r--r--libavcodec/mediacodec_wrapper.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 546768f..cd933d6 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -1416,12 +1416,9 @@ int ff_AMediaCodec_configure(FFAMediaCodec* codec, const FFAMediaFormat* format,
int attached = 0;
JNIEnv *env = NULL;
- /* TODO: implement surface handling */
- av_assert0(surface == NULL);
-
JNI_ATTACH_ENV_OR_RETURN(env, &attached, codec, AVERROR_EXTERNAL);
- (*env)->CallVoidMethod(env, codec->object, codec->jfields.configure_id, format->object, NULL, NULL, flags);
+ (*env)->CallVoidMethod(env, codec->object, codec->jfields.configure_id, format->object, surface, NULL, flags);
if (ff_jni_exception_check(env, 1, codec) < 0) {
ret = AVERROR_EXTERNAL;
goto fail;
OpenPOWER on IntegriCloud