媒体codeC果冻豆 [英] Mediacodec jelly-bean
本文介绍了媒体codeC果冻豆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在与媒体codeC上果冻豆的.MP4文件,并在logcat中得到这个
12月2日至27日:12:1364.5:A / A codeC(6760):框架/ AV /媒体/ libstagefright / A codec.cpp:1041 CHECK (def.nBufferSize> =大小)失败。
12月2日至27号:12:1364.5:A / libc的(6760):致命的信号11(SIGSEGV)在0xdeadbaad(code = 1),螺纹6778(codecLooper)
谁能告诉我这是什么? 如何解决呢?
解决方案
您提供的不是很多信息,所以答案如下:
看起来是libstagefright库的内部检查。
我的三星标签2面临着同样的错误在德codeR的配置。
MDE codeR =媒体codec.createDe coderByType(MIME);
创建了德codeR后,它是由输入格式配置为从提取(也称为分路器)
收 MediaFormat的InputFormat = extractor.getTrackFormat(我);
MDE coder.configure(的InputFormat,NULL,NULL,0); //< - 崩溃这里
修正(前MDE coder.configure把它)
inputFormat.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE,0);
I'm working with media codec for an .mp4 file on jelly-bean and getting this in logcat
02-27 12:12:13.645: A/ACodec(6760): frameworks/av/media/libstagefright/ACodec.cpp:1041 CHECK(def.nBufferSize >= size) failed.
02-27 12:12:13.645: A/libc(6760): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 6778 (CodecLooper)
Can anyone tell me what is this? and how to solve it?
解决方案
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);
这篇关于媒体codeC果冻豆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文