[FFmpeg-cvslog] lavc/mediacodec: add missing MediaCodec.Get{Input, Output}Buffer() checks
Matthieu Bouron
git at videolan.org
Wed May 25 16:49:10 CEST 2016
ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at stupeflix.com> | Tue May 17 10:28:38 2016 +0200| [d14deeb6bcf4ab0d83f57e20c1c35bb4f4f91d8e] | committer: Matthieu Bouron
lavc/mediacodec: add missing MediaCodec.Get{Input,Output}Buffer() checks
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d14deeb6bcf4ab0d83f57e20c1c35bb4f4f91d8e
---
libavcodec/mediacodec_wrapper.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 0f9dcba..053c164 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;
More information about the ffmpeg-cvslog
mailing list