mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 22:25:36 +01:00
swr: add a lowpass default so that each Resampler can have its own default.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
ae5a55e77a
commit
41049d07f2
@@ -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 cutoff, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta){
|
||||
double cutoff0, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta){
|
||||
double cutoff = cutoff0? cutoff0 : 0.8;
|
||||
double factor= FFMIN(out_rate * cutoff / in_rate, 1.0);
|
||||
int phase_count= 1<<phase_shift;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user