X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libswresample%2Fsoxr_resample.c;h=8181c749b860b16781e35f8ac21832de81dc512c;hb=ee4aa388b2231e988eccdab652c55df080d6ad45;hp=b9c6735028d6afd608c08bb4215577e40c3cb0b3;hpb=4c5c522fc1a55940e931ece665b2b249d8f39bb1;p=ffmpeg diff --git a/libswresample/soxr_resample.c b/libswresample/soxr_resample.c index b9c6735028d..8181c749b86 100644 --- a/libswresample/soxr_resample.c +++ b/libswresample/soxr_resample.c @@ -46,7 +46,7 @@ static struct ResampleContext *create(struct ResampleContext *c, int out_rate, i soxr_io_spec_t io_spec = soxr_io_spec(type, type); soxr_quality_spec_t q_spec = soxr_quality_spec((int)((precision-2)/4), (SOXR_HI_PREC_CLOCK|SOXR_ROLLOFF_NONE)*!!cheby); - q_spec.precision = linear? 0 : precision; + q_spec.precision = precision; #if !defined SOXR_VERSION /* Deprecated @ March 2013: */ q_spec.bw_pc = cutoff? FFMAX(FFMIN(cutoff,.995),.8)*100 : q_spec.bw_pc; #else