summaryrefslogtreecommitdiff
path: root/libavcodec/nellymoserdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-04-16 15:03:07 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-04-16 15:03:07 +0000
commit687550d35e5b84c1821ef5b3218cb901b9d90e76 (patch)
treeb8d71de9c09a173ffacf4d22b8a05b7776cb5d13 /libavcodec/nellymoserdec.c
parent5c65660506fc3379d1b7d290042b790c010ce04c (diff)
simplify
Originally committed as revision 12855 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/nellymoserdec.c')
-rw-r--r--libavcodec/nellymoserdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index 8a829b3f3a..fc57f2d61f 100644
--- a/libavcodec/nellymoserdec.c
+++ b/libavcodec/nellymoserdec.c
@@ -119,9 +119,8 @@ static void overlap_and_window(NellyMoserDecodeContext *s, float *state, float *
bot = 0;
top = NELLY_BUF_LEN-1;
- while (bot < NELLY_BUF_LEN/2) {
+ while (bot < NELLY_BUF_LEN) {
audio[bot] = ( a_in[bot]*sine_window[bot]+state[bot]*sine_window[top])/s->scale_bias + s->add_bias;
- audio[top] = ( a_in[top]*sine_window[top]+state[top]*sine_window[bot])/s->scale_bias + s->add_bias;
bot++;
top--;