[FFmpeg-soc] [soc]: r1976 - aac/aac.c
andoma
subversion at mplayerhq.hu
Wed Mar 5 16:22:02 CET 2008
Author: andoma
Date: Wed Mar 5 16:22:01 2008
New Revision: 1976
Log:
Rename LTP_ROUND() to ltp_round()
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Wed Mar 5 16:22:01 2008
@@ -1809,7 +1809,7 @@ static void ltp_trans(AACContext * ac, s
/**
* @todo: Replace this with float_to_int16()
*/
-static inline int16_t LTP_ROUND(float x) {
+static inline int16_t ltp_round(float x) {
if (x >= 0)
{
if (x >= 1.0f)
@@ -1830,8 +1830,8 @@ static void ltp_update_trans(AACContext
if (ac->is_saved) {
for (i = 0; i < 1024; i++) {
sce->ltp_state[i] = sce->ltp_state[i + 1024];
- sce->ltp_state[i + 1024] = LTP_ROUND(sce->ret[i] - ac->add_bias);
- sce->ltp_state[i + 2 * 1024] = LTP_ROUND(sce->saved[i]);
+ sce->ltp_state[i + 1024] = ltp_round(sce->ret[i] - ac->add_bias);
+ sce->ltp_state[i + 2 * 1024] = ltp_round(sce->saved[i]);
//sce->ltp_state[i + 3 * 1024] = 0;
}
}
More information about the FFmpeg-soc
mailing list