Add ffmpeg support. Based on:
Enable use of FFMPEG codecs for extended formats
http://review.cyanogenmod.org/#/c/63477/