Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-05-17 11:28:38 +0300
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-05-25 17:46:47 +0300
commitd14deeb6bcf4ab0d83f57e20c1c35bb4f4f91d8e (patch)
tree3d841f5575df2af104deacbb6ddfaf1c2964b188 /libavcodec/mediacodec_wrapper.c
parentfbc9359d859fd45e9a2ed0a9259b54459c0820fd (diff)
lavc/mediacodec: add missing MediaCodec.Get{Input,Output}Buffer() checks
Diffstat (limited to 'libavcodec/mediacodec_wrapper.c')
-rw-r--r--libavcodec/mediacodec_wrapper.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 0f9dcbafa0..053c164e3f 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -1056,6 +1056,10 @@ FFAMediaCodec* ff_AMediaCodec_createCodecByName(const char *name)
goto fail;
}
+ if (codec->jfields.get_input_buffer_id && codec->jfields.get_output_buffer_id) {
+ codec->has_get_i_o_buffer = 1;
+ }
+
JNI_DETACH_ENV(attached, codec);
return codec;
@@ -1178,6 +1182,10 @@ FFAMediaCodec* ff_AMediaCodec_createEncoderByType(const char *mime)
goto fail;
}
+ if (codec->jfields.get_input_buffer_id && codec->jfields.get_output_buffer_id) {
+ codec->has_get_i_o_buffer = 1;
+ }
+
JNI_DETACH_ENV(attached, NULL);
return codec;