[FFmpeg-devel] [PATCH 1/2] lavc/mediacodec_wrapper: do not declare JNIAMedia{Codec, Format}Fields on the stack

Matthieu Bouron matthieu.bouron at gmail.com
Sun May 21 20:09:28 EEST 2017


On Sun, May 21, 2017 at 06:17:27PM +0200, Matthieu Bouron wrote:
> ---
>  libavcodec/mediacodec_wrapper.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c
> index 5e1beed43a..0f573bfc7a 100644
> --- a/libavcodec/mediacodec_wrapper.c
> +++ b/libavcodec/mediacodec_wrapper.c
> @@ -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 },
> -- 
> 2.12.0
> 

Updated locally to include also JNIAMediaCodecListFields.

-- 
Matthieu B.


More information about the ffmpeg-devel mailing list