Mediacodec jelly bean

I work with a media codec for a .mp4 file on jelly-bean and get it 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 someone tell me what it is? and how to solve it?

+4
android mp4 android-4.2-jelly-bean
source share
1 answer

You did not provide much information, so the answer should be:

This seems to be an internal check of the libstagefright library.

I encountered the same error in the Samsung Tab 2 in the decoder configuration.

 mDecoder = MediaCodec.createDecoderByType(mime); 

After creating the decoder, it is configured with the input format received from the extractor (also called demuxer)

 MediaFormat inputFormat = extractor.getTrackFormat(i); mDecoder.configure(inputFormat, null, null, 0); // <-- crashes here 

Fix (put it before mDecoder.configure):

 inputFormat.setInteger(MediaFormat.KEY_MAX_INPUT_SIZE, 0); 
+5
source share

All Articles