mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/mediacodec_wrapper: do not declare JNIAMedia{Codec,CodecList,Format}Fields on the stack
This commit is contained in:
parent
2fb25e2dd6
commit
cbae648eb8
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user