summaryrefslogtreecommitdiff
authorRob Sykes <robs@users.sourceforge.net>2013-03-01 13:29:14 (GMT)
committer Michael Niedermayer <michaelni@gmx.at>2013-03-01 13:38:02 (GMT)
commitdc666d360b92f3e87d90c706a5258d2947f034f5 (patch)
tree7551115d2dc3ea03b96e9e5d645f7f9130234d5f
parent5a232e5078cc57d10452968413a00be8d642f4aa (diff)
downloadffmpeg-dc666d360b92f3e87d90c706a5258d2947f034f5.zip
ffmpeg-dc666d360b92f3e87d90c706a5258d2947f034f5.tar.gz
ffmpeg-dc666d360b92f3e87d90c706a5258d2947f034f5.tar.bz2
soxr: libsoxr 0.1.1 support
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>
Diffstat
-rw-r--r--libswresample/soxr_resample.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libswresample/soxr_resample.c b/libswresample/soxr_resample.c
index 15fcc83..4c000db 100644
--- a/libswresample/soxr_resample.c
+++ b/libswresample/soxr_resample.c
@@ -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 *)