ffmpeg: add swr_set_compensation to interface
ActiveAE: use swr_set_compensation for changing resample ratio
[Fix][StringUtils] Prevent infinite loop or crash.

Example:

  std::string rep = "1";
  StringUtils::Replace(rep,"",""); //infinite loop
  StringUtils::Replace(rep,"","1"); //crash std::bad_alloc
Merge pull request #3255 from ace20022/fix_replace

[Fix][StringUtils] Prevent infinite loop or crash.
Merge pull request #3240 from FernetMenta/aefixes

ActiveAE: fix setting resample ratio
[externalffmpeg/osx/ios] - fix compile after 429ce9bc69cdee21d3f3be23c1f7147f25b42db6