Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2009-06-29 20:48:57 +0400
committerGregory Maxwell <greg@xiph.org>2009-06-29 20:48:57 +0400
commita80958b025dc69cb324043940fb3c84c03eb76ed (patch)
treec6b9e7ae73eb8576d94d374cd168b891056cb3de
parentb92dce32703aa0a7899db22c4d28e8cab6b5fdcf (diff)
Note some more platforms where float-approx is tested, fix a bug in the prediction ctl,
and remove some dead code from bands.c.
-rw-r--r--configure.ac2
-rw-r--r--libcelt/bands.c2
-rw-r--r--libcelt/celt.c2
3 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index b0a4f18..c9f399f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,7 +93,7 @@ AC_DEFINE_UNQUOTED(CELT_EXTRA_VERSION, "${CELT_EXTRA_VERSION}", [Version extra])
has_float_approx=no
#case "$host_cpu" in
-#i[[3456]]86 | x86_64)
+#i[[3456]]86 | x86_64 | powerpc64 | powerpc32 | ia64)
# has_float_approx=yes
# ;;
#esac
diff --git a/libcelt/bands.c b/libcelt/bands.c
index 59edb78..7b1fe30 100644
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -916,7 +916,6 @@ void unquant_bands_stereo(const CELTMode *m, celt_norm_t * restrict X, celt_norm
int enabled = 1;
pband++;
if (remaining_bits >= 1<<BITRES) {
- enabled = pgains[pband] > QCONST16(.5,15);
enabled = ec_dec_bits(dec, 1);
balance += 1<<BITRES;
}
@@ -1019,7 +1018,6 @@ void unquant_bands_stereo(const CELTMode *m, celt_norm_t * restrict X, celt_norm
int enabled = 1;
pband++;
if (remaining_bits >= 1<<BITRES) {
- enabled = pgains[pband] > QCONST16(.5,15);
enabled = ec_dec_bits(dec, 1);
balance += 1<<BITRES;
}
diff --git a/libcelt/celt.c b/libcelt/celt.c
index 98bf4bf..5d32fdc 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -1016,7 +1016,7 @@ int celt_encoder_ctl(CELTEncoder * restrict st, int request, ...)
{
st->force_intra = 1;
st->pitch_permitted = 0;
- } else if (value=1) {
+ } else if (value==1) {
st->force_intra = 0;
st->pitch_permitted = 0;
} else {