Merge "MediaCodec: fix onError and onInputBufferAvailable" into lmp-dev