]> git.sesse.net Git - ffmpeg/commitdiff
soxr: libsoxr 0.1.1 support
authorRob Sykes <robs@users.sourceforge.net>
Fri, 1 Mar 2013 13:29:14 +0000 (14:29 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Mar 2013 13:38:02 +0000 (14:38 +0100)
Libsoxr 0.1.1 will be out very soon; no changes planned beyond what's currently in git.
It includes a couple of fixes (not affecting FFmpeg's current usage) and a minor API change (but remains ABI compatible).

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/soxr_resample.c

index 15fcc83bf18eec6b834f3b7bd09dc6d4b2bba4eb..4c000db0ca777c7ab5ad6fa19b2df9dc90073d35 100644 (file)
@@ -47,7 +47,11 @@ static struct ResampleContext *create(struct ResampleContext *c, int out_rate, i
 
     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;
+#if !defined SOXR_VERSION /* Deprecated @ March 2013: */
     q_spec.bw_pc = cutoff? FFMAX(FFMIN(cutoff,.995),.8)*100 : q_spec.bw_pc;
+#else
+    q_spec.passband_end = cutoff? FFMAX(FFMIN(cutoff,.995),.8) : q_spec.passband_end;
+#endif
 
     soxr_delete((soxr_t)c);
     c = (struct ResampleContext *)