summaryrefslogtreecommitdiff
path: root/apps/codecs/libatrac/atrac3.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libatrac/atrac3.c')
-rw-r--r--apps/codecs/libatrac/atrac3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/codecs/libatrac/atrac3.c b/apps/codecs/libatrac/atrac3.c
index fa0400a408..ecb5a1480d 100644
--- a/apps/codecs/libatrac/atrac3.c
+++ b/apps/codecs/libatrac/atrac3.c
@@ -726,7 +726,7 @@ static void gainCompensateAndOverlap (int32_t *pIn, int32_t *pPrev, int32_t *pOu
726 if (pGain2->num_gain_data == 0) 726 if (pGain2->num_gain_data == 0)
727 gain1 = ONE_16; 727 gain1 = ONE_16;
728 else 728 else
729 gain1 = gain_tab1[pGain2->levcode[0]]; 729 gain1 = (ONE_16<<4)>>(pGain2->levcode[0]);
730 730
731 if (pGain1->num_gain_data == 0) { 731 if (pGain1->num_gain_data == 0) {
732 /* Remark: This path is called >90%. */ 732 /* Remark: This path is called >90%. */
@@ -743,7 +743,7 @@ static void gainCompensateAndOverlap (int32_t *pIn, int32_t *pPrev, int32_t *pOu
743 for (cnt = 0; cnt < numdata; cnt++) { 743 for (cnt = 0; cnt < numdata; cnt++) {
744 startLoc = pGain1->loccode[cnt] * 8; 744 startLoc = pGain1->loccode[cnt] * 8;
745 745
746 gain2 = gain_tab1[pGain1->levcode[cnt]]; 746 gain2 = (ONE_16<<4)>>(pGain1->levcode[cnt]);
747 gain_inc = gain_tab2[(pGain1->levcode[cnt+1] - pGain1->levcode[cnt])+15]; 747 gain_inc = gain_tab2[(pGain1->levcode[cnt+1] - pGain1->levcode[cnt])+15];
748 748
749 /* Apply variable gain (gain1 -> gain2) to samples */ 749 /* Apply variable gain (gain1 -> gain2) to samples */