我想通过将颜色格式设置为COLOR_FormatYUV420Flexible来使用MediaCodec进行编码。我的输入缓冲区是yuv420p。当我像这样输入缓冲区时:intinputBufferIndex=mEncoder.dequeueInputBuffer(-1);mCurrentBufferIndex=inputBufferIndex;if(inputBufferIndex>=0){ByteBufferinputBuffer=inputBuffers[inputBufferIndex];//if(VERBOSE)Log.i(TAG,"pos:"+inputBuffer.posi