[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:48:51 UTC 2009


The following commit has been merged in the master branch:
commit 11b44e510065c5f43627a5de0f012dab10958073
Author: Martin Storsjo <martin at martin.st>
Date:   Fri Jul 31 16:42:24 2009 +0300

    Fix a bug on architectures where long is 64 bit.
    
    Initially, this code gave a warning "comparison is always false due to
    limited range of data type" if long was 64 bit. Additionally, the
    output from the AMR encoder was mostly noise.

diff --git a/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/az_lsp.cpp b/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/az_lsp.cpp
index 688cda3..4fc4fbc 100644
--- a/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/az_lsp.cpp
+++ b/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/az_lsp.cpp
@@ -240,7 +240,7 @@ static Word16 Chebps(Word16 x,
     t0 += (Word32) * (p_f) << 13;
 
 
-    if ((UWord32)(t0 - 0xfe000000L) < 0x01ffffffL -  0xfe000000L)
+    if ((UWord32)(t0 - 0xfe000000L) < (UWord32)(0x01ffffffL -  0xfe000000L))
     {
         cheb = (Word16)(t0 >> 10);
     }

-- 
opencore-amr packaging



More information about the pkg-multimedia-commits mailing list