diff options
| author | 2024-11-12 18:52:33 -0500 | |
|---|---|---|
| committer | 2024-11-12 19:28:50 -0500 | |
| commit | 8c996a5b597bd1cd9c188a0e61eae1ff718c8ca2 (patch) | |
| tree | 2195b2b6e43d2c879a01b72c0c7a159447c1c35f /src/codec | |
| parent | bacabb8f2b488b3da58dc3ea4159326298a003f6 (diff) | |
| download | camu-8c996a5b597bd1cd9c188a0e61eae1ff718c8ca2.tar.gz camu-8c996a5b597bd1cd9c188a0e61eae1ff718c8ca2.tar.bz2 camu-8c996a5b597bd1cd9c188a0e61eae1ff718c8ca2.zip | |
Bare minimum Android sink
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/codec')
| -rw-r--r-- | src/codec/ffmpeg/resampler.c | 2 | ||||
| -rw-r--r-- | src/codec/meson.build | 1 |
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 |