Mediacodec jelly-bean

假如想象 提交于 2019-11-29 14:09:35

You provided not much info, so the answer follows:

Looks like it is internal check of libstagefright library.

I faced same error on Samsung Tab 2 on decoder's configuration.

mDecoder = MediaCodec.createDecoderByType(mime);

After the decoder is created it is configured by input format received from the extractor(aka demuxer)

MediaFormat inputFormat = extractor.getTrackFormat(i);

mDecoder.configure(inputFormat, null, null, 0); // <-- crashes here

Fix (place it before mDecoder.configure):

inputFormat.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE, 0);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!