Check the color format supported by MediaCodec

The color format was different in different device. There was a bug in Hongmi note, avc encoder encountered a error, should be fixed.