summaryrefslogtreecommitdiff
path: root/src/codec
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/ffmpeg/resampler.c2
-rw-r--r--src/codec/meson.build1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/codec/ffmpeg/resampler.c b/src/codec/ffmpeg/resampler.c
index 00418e6..4f5a2ab 100644
--- a/src/codec/ffmpeg/resampler.c
+++ b/src/codec/ffmpeg/resampler.c
@@ -23,7 +23,7 @@ static bool ff_resampler_init(struct camu_resampler *resamp, struct camu_resampl
return false;
}
-#ifndef _WIN32
+#ifdef CAMU_HAVE_SOXR
// Slower but more accurate resampler.
av_opt_set_int(av->resample_context, "resampler", SWR_ENGINE_SOXR, 0);
#endif
diff --git a/src/codec/meson.build b/src/codec/meson.build
index 32a942e..fa5ff9a 100644
--- a/src/codec/meson.build
+++ b/src/codec/meson.build
@@ -43,6 +43,7 @@ if get_option('codecs').contains('ffmpeg')
soxr = compiler.find_library('soxr', required: false)
if soxr.found()
ffmpeg_deps += [soxr]
+ ffmpeg_args += ['-DCAMU_HAVE_SOXR']
endif
endif
endif