diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-03 09:35:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-03 09:35:49 +0100 |
| commit | 82be73bbfd7a81b57bff02671f88b41f38e65f58 (patch) | |
| tree | 53c5206584332fb363cf766aa6681247f77648ca | |
| parent | 3b77150ef88203aa2522df5f7185f34af938ea74 (diff) | |
| parent | 28d89b1ffa57da6c5407773182cbb1d063384ee5 (diff) | |
Merge.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/lib/resampler.cc | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2015-09-02 Carl Hetherington <cth@carlh.net> + + * Switch to soxr resampler as it seems + to have fewer artefacts in some cases (#682, possibly #493). + 2015-09-02 c.hetherington <cth@carlh.net> * Fix problems when changing the number diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc index 2538f7dca..f54f4ec6a 100644 --- a/src/lib/resampler.cc +++ b/src/lib/resampler.cc @@ -52,6 +52,8 @@ Resampler::Resampler (int in, int out, int channels) av_opt_set_int (_swr_context, "isr", _in_rate, 0); av_opt_set_int (_swr_context, "osr", _out_rate, 0); + av_opt_set (_swr_context, "resampler", "soxr", 0); + swr_init (_swr_context); } |
