summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/amrnb
diff options
context:
space:
mode:
authorPacketVideo CM <engbuild@pv.com>2011-05-18 12:31:42 +0300
committerMartin Storsjo <martin@martin.st>2012-07-10 13:38:45 +0300
commit8d5a687f4f4c50f4fc8c1a29ab7a0cd618bcf9d1 (patch)
treefa76ee276ae175ed5377636b2fc3ee98d00bb13e /media/libstagefright/codecs/amrnb
parentffb829430ff20ccd6c13e6ed894f2373b2d93939 (diff)
downloadframeworks_av-8d5a687f4f4c50f4fc8c1a29ab7a0cd618bcf9d1.zip
frameworks_av-8d5a687f4f4c50f4fc8c1a29ab7a0cd618bcf9d1.tar.gz
frameworks_av-8d5a687f4f4c50f4fc8c1a29ab7a0cd618bcf9d1.tar.bz2
amrnb: Fix audio distortion in an AMR-NB clip
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
Diffstat (limited to 'media/libstagefright/codecs/amrnb')
-rw-r--r--media/libstagefright/codecs/amrnb/dec/src/post_pro.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/amrnb/dec/src/post_pro.cpp b/media/libstagefright/codecs/amrnb/dec/src/post_pro.cpp
index ce31793..8201e54 100644
--- a/media/libstagefright/codecs/amrnb/dec/src/post_pro.cpp
+++ b/media/libstagefright/codecs/amrnb/dec/src/post_pro.cpp
@@ -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. */