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);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…