Enable use of FFMPEG codecs for extended formats

credits to CyanogenMod.

Change-Id: Ibc14b7fd66366c437dcc53f38635f7aeae4236c9