summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/libatrac/atrac3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libatrac/atrac3.c b/apps/codecs/libatrac/atrac3.c
index 22e787d6e3..499a9f6572 100644
--- a/apps/codecs/libatrac/atrac3.c
+++ b/apps/codecs/libatrac/atrac3.c
@@ -666,7 +666,7 @@ static void applyFixGain (int32_t *pIn, int32_t *pPrev, int32_t *pOut,
666 if (ONE_16 == gain) { 666 if (ONE_16 == gain) {
667 /* gain1 = 1.0 -> no multiplication needed, just adding */ 667 /* gain1 = 1.0 -> no multiplication needed, just adding */
668 /* Remark: This path is called >90%. */ 668 /* Remark: This path is called >90%. */
669 do { 669 while (i<256) {
670 pOut[i] = pIn[i] + pPrev[i]; i++; 670 pOut[i] = pIn[i] + pPrev[i]; i++;
671 pOut[i] = pIn[i] + pPrev[i]; i++; 671 pOut[i] = pIn[i] + pPrev[i]; i++;
672 pOut[i] = pIn[i] + pPrev[i]; i++; 672 pOut[i] = pIn[i] + pPrev[i]; i++;
@@ -675,11 +675,11 @@ static void applyFixGain (int32_t *pIn, int32_t *pPrev, int32_t *pOut,
675 pOut[i] = pIn[i] + pPrev[i]; i++; 675 pOut[i] = pIn[i] + pPrev[i]; i++;
676 pOut[i] = pIn[i] + pPrev[i]; i++; 676 pOut[i] = pIn[i] + pPrev[i]; i++;
677 pOut[i] = pIn[i] + pPrev[i]; i++; 677 pOut[i] = pIn[i] + pPrev[i]; i++;
678 } while (i<256); 678 };
679 } else { 679 } else {
680 /* gain1 != 1.0 -> we need to do a multiplication */ 680 /* gain1 != 1.0 -> we need to do a multiplication */
681 /* Remark: This path is called seldom. */ 681 /* Remark: This path is called seldom. */
682 do { 682 while (i<256) {
683 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++; 683 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++;
684 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++; 684 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++;
685 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++; 685 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++;
@@ -688,7 +688,7 @@ static void applyFixGain (int32_t *pIn, int32_t *pPrev, int32_t *pOut,
688 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++; 688 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++;
689 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++; 689 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++;
690 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++; 690 pOut[i] = fixmul16(pIn[i], gain) + pPrev[i]; i++;
691 } while (i<256); 691 };
692 } 692 }
693} 693}
694 694