[droid;mediacodec] Bunch of Mediacodec fixes