Make FFmpeg working on Android platform

Require @oioitff media branch
Prepare for @oioitff media branch merge to master.