OSDN Git Service

amrnb: Fix audio distortion in an AMR-NB clip
authorPacketVideo CM <engbuild@pv.com>
Wed, 18 May 2011 09:31:42 +0000 (12:31 +0300)
committerMartin Storsjo <martin@martin.st>
Tue, 10 Jul 2012 10:38:45 +0000 (13:38 +0300)
This fix had the PacketVideo internal tracking number
RIO-9190.

This was committed on the master branch of the opencore
repository in commit 7d6ccc907d3a15ca2ff74b9c76f122ab87d0ffbe.

Change-Id: Icbd7d6fe94e02cae360946cfb6f3b8dc90c8b518

media/libstagefright/codecs/amrnb/dec/src/post_pro.cpp

index ce31793..8201e54 100644 (file)
@@ -376,7 +376,7 @@ void Post_Process(
         L_tmp += ((Word32) st->x0) * c_b0;
         L_tmp += ((Word32) st->x1) * c_b1;
         L_tmp += ((Word32) x2) * c_b2;
-        L_tmp <<= 3;
+        L_tmp = L_shl(L_tmp, 3, pOverflow);
 
 
         /* Multiplication by two of output speech with saturation. */