diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-05-15 19:07:29 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-05-16 01:42:05 +0400 |
commit | 033a4a942a81a1880ca5a89e7eb3a2b5f529a7fb (patch) | |
tree | 56cfc896c783f5accb0d872130a8ee966648f487 /libavcodec/aacdec.c | |
parent | 7f995abed362be3ae54c6f0464cf00b2c89b7678 (diff) |
aacdec: Use float instead of int16_t for ltp_state to avoid needless rounding.
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index d26cce994c..5f9dd834a0 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -1820,9 +1820,9 @@ static void update_ltp(AACContext *ac, SingleChannelElement *sce) saved_ltp[i + 512] = ac->buf_mdct[1023 - i] * lwindow[511 - i]; } - memcpy(sce->ltp_state, &sce->ltp_state[1024], 1024 * sizeof(int16_t)); - ac->fmt_conv.float_to_int16(&(sce->ltp_state[1024]), sce->ret, 1024); - ac->fmt_conv.float_to_int16(&(sce->ltp_state[2048]), saved_ltp, 1024); + memcpy(sce->ltp_state, sce->ltp_state+1024, 1024 * sizeof(*sce->ltp_state)); + memcpy(sce->ltp_state+1024, sce->ret, 1024 * sizeof(*sce->ltp_state)); + memcpy(sce->ltp_state+2048, saved_ltp, 1024 * sizeof(*sce->ltp_state)); } /** |