[SCM] opencore-amr packaging branch, master, updated. upstream/0.1.2-10-g7bf1e45
ceros-guest at users.alioth.debian.org
ceros-guest at users.alioth.debian.org
Fri Sep 18 20:49:01 UTC 2009
The following commit has been merged in the master branch:
commit 9187a474074a5aa7a20ecc4087e6367684164454
Author: Martin Storsjo <martin at martin.st>
Date: Tue Aug 11 00:35:52 2009 +0300
Properly negate all values.
This is the proper fix for the issue that earlier erroneously was fixed by
just initializing ipos[0] to zero.
diff --git a/opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/set_sign.cpp b/opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/set_sign.cpp
index b974005..f759901 100644
--- a/opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/set_sign.cpp
+++ b/opencore/codecs_v2/audio/gsm_amr/amr_nb/enc/src/set_sign.cpp
@@ -482,17 +482,16 @@ void set_sign12k2(
else
{
*(p_sign--) = -32767; /* sign = -1 */
- cor = - (cor);
+ cor = negate(cor);
/* modify dn[] according to the fixed sign */
- dn[i] = - val;
+ dn[i] = negate(val);
}
*(p_en--) = cor;
}
max_of_all = -1;
- ipos[0] = 0;
for (i = 0; i < nb_track; i++)
{
max = -1;
--
opencore-amr packaging
More information about the pkg-multimedia-commits
mailing list