diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-11 20:38:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-11 20:39:04 +0200 |
commit | 662a8d882758ac90cf55968fc7ab3540e51f2d0b (patch) | |
tree | aab4b2f82b340a4c449fa74d86e4e8fb4810dc0b /libavresample/resample.c | |
parent | 65088b925a0dc2defdeaffbbc24963ef34af7834 (diff) | |
parent | 254c95cdd1b669a722204a4a65974fc2523c8f83 (diff) | |
download | ffmpeg-662a8d882758ac90cf55968fc7ab3540e51f2d0b.tar.gz |
Merge commit '254c95cdd1b669a722204a4a65974fc2523c8f83'
* commit '254c95cdd1b669a722204a4a65974fc2523c8f83':
resample: split linear into its own function
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavresample/resample.c')
-rw-r--r-- | libavresample/resample.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavresample/resample.c b/libavresample/resample.c index ca37320ab8..79275950b1 100644 --- a/libavresample/resample.c +++ b/libavresample/resample.c @@ -181,22 +181,22 @@ ResampleContext *ff_audio_resample_init(AVAudioResampleContext *avr) switch (avr->internal_sample_fmt) { case AV_SAMPLE_FMT_DBLP: - c->resample_one = resample_one_dbl; + c->resample_one = c->linear ? resample_linear_dbl : resample_one_dbl; c->resample_nearest = resample_nearest_dbl; c->set_filter = set_filter_dbl; break; case AV_SAMPLE_FMT_FLTP: - c->resample_one = resample_one_flt; + c->resample_one = c->linear ? resample_linear_flt : resample_one_flt; c->resample_nearest = resample_nearest_flt; c->set_filter = set_filter_flt; break; case AV_SAMPLE_FMT_S32P: - c->resample_one = resample_one_s32; + c->resample_one = c->linear ? resample_linear_s32 : resample_one_s32; c->resample_nearest = resample_nearest_s32; c->set_filter = set_filter_s32; break; case AV_SAMPLE_FMT_S16P: - c->resample_one = resample_one_s16; + c->resample_one = c->linear ? resample_linear_s16 : resample_one_s16; c->resample_nearest = resample_nearest_s16; c->set_filter = set_filter_s16; break; |