diff options
author | Rob Sykes <aquegg@yahoo.co.uk> | 2012-12-11 21:43:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-11 22:04:00 +0100 |
commit | 801b315729450b30d1ec3e8a9b7862b3c41146be (patch) | |
tree | 9922a6eb9014c983254dc351441a46e2c20e7f91 /libswresample/resample.c | |
parent | 41049d07f2e8f304895a12b6e27400fbc72cc797 (diff) | |
download | ffmpeg-801b315729450b30d1ec3e8a9b7862b3c41146be.tar.gz |
swr: Add SOX resampler support
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample.c')
-rw-r--r-- | libswresample/resample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libswresample/resample.c b/libswresample/resample.c index 7256fcf41a..60ba0e9bd0 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -196,7 +196,8 @@ static int build_filter(ResampleContext *c, void *filter, double factor, int tap } static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, - double cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta){ + double cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta, + double precision, int cheby){ double cutoff = cutoff0? cutoff0 : 0.8; double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); int phase_count= 1<<phase_shift; |