aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2017-05-21 17:48:05 +0200
committerMatthieu Bouron <matthieu.bouron@gmail.com>2017-05-23 15:50:42 +0200
commitcbae648eb8b2789eeb624959e8451967ea9e263a (patch)
tree0e7765e8ba4bfc340eb63ea9f76aa518bd5d0b5e
parent2fb25e2dd6ff6bf7803fd2ebc2716ffc540bd19a (diff)
downloadffmpeg-cbae648eb8b2789eeb624959e8451967ea9e263a.tar.gz
lavc/mediacodec_wrapper: do not declare JNIAMedia{Codec,CodecList,Format}Fields on the stack
-rw-r--r--libavcodec/mediacodec_wrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
index 5e1beed43a..4a37cd7cd7 100644
--- a/libavcodec/mediacodec_wrapper.c
+++ b/libavcodec/mediacodec_wrapper.c
@@ -66,7 +66,7 @@ struct JNIAMediaCodecListFields {
jfieldID hevc_profile_main10_id;
jfieldID hevc_profile_main10_hdr10_id;
-} JNIAMediaCodecListFields;
+};
static const struct FFJniField jni_amediacodeclist_mapping[] = {
{ "android/media/MediaCodecList", NULL, NULL, FF_JNI_CLASS, offsetof(struct JNIAMediaCodecListFields, mediacodec_list_class), 1 },
@@ -125,7 +125,7 @@ struct JNIAMediaFormatFields {
jmethodID to_string_id;
-} JNIAMediaFormatFields;
+};
static const struct FFJniField jni_amediaformat_mapping[] = {
{ "android/media/MediaFormat", NULL, NULL, FF_JNI_CLASS, offsetof(struct JNIAMediaFormatFields, mediaformat_class), 1 },
@@ -210,7 +210,7 @@ struct JNIAMediaCodecFields {
jfieldID presentation_time_us_id;
jfieldID size_id;
-} JNIAMediaCodecFields;
+};
static const struct FFJniField jni_amediacodec_mapping[] = {
{ "android/media/MediaCodec", NULL, NULL, FF_JNI_CLASS, offsetof(struct JNIAMediaCodecFields, mediacodec_class), 1 },