nuplayer: Always copy duration to output format message

 * In the case of PCM offload, we need to make sure the format is copied
   because we might not have it here.

Change-Id: Icd4ae5ceff66b24e83fe6a2b9a07ec8934590678
nuplayer: Avoid PCM offload when resampler is used

 * We don't support use of the resampler on the PCM offload path,
   this kind of defeats the purpose. While the offload output path
   handles most sample rates, there are cases such as Facebook's
   video preview which use weird formats like 24000KHz mono.
 * To resolve this in NuPlayer, compare metadata from the original
   format with the output format decided by the audio system. Fail
   offload if they don't match.

Change-Id: Ibf7c3a2fa4f54b56c39cc69b1ff6b474738ee339
Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_frameworks_av into lp5.0