mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 02:02:33 +00:00
b3693e5431
From 763e746e97f0c234cea9ad1b674d406f55a2fb51 Mon Sep 17 00:00:00 2001 This applies a patch from the opus-tools fork of the speex resampler, fixing an issue where the resampler could return less that the requested number of samples. https://git.xiph.org/?p=opus-tools.git;a=commitdiff;h=5adadc5 --- media/libspeex_resampler/README_MOZILLA | 3 +- media/libspeex_resampler/src/resample.c | 12 ++++--- media/libspeex_resampler/truncation.patch | 54 +++++++++++++++++++++++++++++++ media/libspeex_resampler/update.sh | 4 +++ 4 files changed, 67 insertions(+), 6 deletions(-) create mode 100644 media/libspeex_resampler/truncation.patch --HG-- extra : rebase_source : db081699c3f914824abeb3bbf6563d459a690eff
22 lines
884 B
Bash
22 lines
884 B
Bash
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
# Usage: ./update.sh <libspeex_src_directory>
|
|
#
|
|
# Copies the needed files from a directory containing the original
|
|
# libspeex sources that we need for HTML5 media playback rate change.
|
|
|
|
cp $1/libspeex/resample.c src
|
|
cp $1/libspeex/arch.h src
|
|
cp $1/libspeex/stack_alloc.h src
|
|
cp $1/libspeex/fixed_generic.h src
|
|
cp $1/include/speex/speex_resampler.h src
|
|
cp $1/include/speex/speex_types.h src
|
|
sed -e 's/unsigned @SIZE16@/uint16_t/g' -e 's/unsigned @SIZE32@/uint32_t/g' -e 's/@SIZE16@/int16_t/g' -e 's/@SIZE32@/int32_t/g' < $1/include/speex/speex_config_types.h.in > src/speex_config_types.h
|
|
cp $1/AUTHORS .
|
|
cp $1/COPYING .
|
|
|
|
# apply outstanding local patches
|
|
patch -p1 < truncation.patch
|