Commit 3e954c98 authored by Rafaël Carré's avatar Rafaël Carré

contrib: add opus 0.9.14

disabled for now until we have a decoder
parent 28c8ae03
From f16543b65a7f91a38ca3fa1a4944599440608daf Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Mon, 6 Aug 2012 11:45:58 -0400
Subject: [PATCH] =?UTF-8?q?Avoid=20C99=20log2=20invocation=20in=20tests=20re?=
=?UTF-8?q?ported=20by=20Rafa=C3=ABl=20Carr=C3=A9=20on=20android.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
celt/tests/test_unit_mathops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/celt/tests/test_unit_mathops.c b/celt/tests/test_unit_mathops.c
index 8119bc1..e33d3ae 100644
--- a/celt/tests/test_unit_mathops.c
+++ b/celt/tests/test_unit_mathops.c
@@ -209,7 +209,7 @@ void testilog2(void)
opus_val32 x;
for (x=1;x<=268435455;x+=127)
{
- opus_val32 error = abs(celt_ilog2(x)-(int)floor(log2(x)));
+ opus_val32 error = abs(celt_ilog2(x)-(int)floor(celt_log2(x)));
if (error!=0)
{
printf("celt_ilog2 failed: celt_ilog2(x)!=floor(log2(x)) (x = %d, error = %d)\n",x,error);
--
1.7.10.4
From c329045758ccd614284f0b7cca859bc046ba1ae3 Mon Sep 17 00:00:00 2001
From: Gregory Maxwell <greg@xiph.org>
Date: Sat, 7 Jul 2012 02:29:56 -0400
Subject: [PATCH] Make stack-protector check use AC_LINK_IFELSE.
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 4a2499f..330cfde 100644
--- a/configure.ac
+++ b/configure.ac
@@ -224,7 +224,7 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes" ; then
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fstack-protector-all"
AC_MSG_CHECKING([if ${CC} supports -fstack-protector-all])
-AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
+AC_LINK_IFELSE([AC_LANG_SOURCE([void main(void){char foo;}])],
[ AC_MSG_RESULT([yes])
STACK_PROTECTOR="-fstack-protector-all" ],
AC_MSG_RESULT([no]))
--
1.7.10.4
d5e038f068ee45bca823fa3e4ece072fac6b7070ba248a9af37832e1642449bad4a6233599439bf6c0271a20492508eca0e57f839ade161a0ff26ec966c22911 opus-0.9.14.tar.gz
# opus
OPUS_VERSION := 0.9.14
OPUS_URL := http://downloads.xiph.org/releases/opus/opus-$(OPUS_VERSION).tar.gz
#PKGS += opus
ifeq ($(call need_pkg,"opus >= 0.9.14"),)
PKGS_FOUND += opus
endif
$(TARBALLS)/opus-$(OPUS_VERSION).tar.gz:
$(call download,$(OPUS_URL))
.sum-opus: opus-$(OPUS_VERSION).tar.gz
opus: opus-$(OPUS_VERSION).tar.gz .sum-opus
$(UNPACK)
$(APPLY) $(SRC)/opus/0001-Make-stack-protector-check-use-AC_LINK_IFELSE.patch
$(APPLY) $(SRC)/opus/0001-Avoid-C99-log2-invocation-in-tests-reported-by-Rafa-.patch
$(UPDATE_AUTOCONFIG)
$(MOVE)
OPUS_CONF=
ifdef HAVE_FPU
OPUS_CONF += --enable-fixed-point
endif
.opus: opus
$(RECONF)
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(OPUS_CONF)
cd $< && $(MAKE) install
touch $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment