We suppose the codecs that MediaCodec reports won't change during runtime, so initialize in constructor.