Last active
December 10, 2015 23:48
-
-
Save ehsan/4512120 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/media/libspeex_resampler/src/speex_config_types.h b/media/libspeex_resampler/src/speex_config_types.h | |
--- a/media/libspeex_resampler/src/speex_config_types.h | |
+++ b/media/libspeex_resampler/src/speex_config_types.h | |
@@ -1,11 +1,11 @@ | |
#ifndef __SPEEX_TYPES_H__ | |
#define __SPEEX_TYPES_H__ | |
/* these are filled in by configure */ | |
-typedef uint16_t spx_int16_t; | |
-typedef unsigned uint16_t spx_uint16_t; | |
-typedef uint32_t spx_int32_t; | |
-typedef unsigned uint32_t spx_uint32_t; | |
+typedef int16_t spx_int16_t; | |
+typedef uint16_t spx_uint16_t; | |
+typedef int32_t spx_int32_t; | |
+typedef uint32_t spx_uint32_t; | |
#endif | |
diff --git a/media/libspeex_resampler/update.sh b/media/libspeex_resampler/update.sh | |
--- a/media/libspeex_resampler/update.sh | |
+++ b/media/libspeex_resampler/update.sh | |
@@ -7,11 +7,11 @@ | |
# 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/@SIZE16@/uint16_t/g' -e 's/@SIZE32@/uint32_t/g' < $1/include/speex/speex_config_types.h.in > src/speex_config_types.h | |
+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 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment