summaryrefslogtreecommitdiff
path: root/libavcodec/nellymoserdec.c
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@gmail.com>2008-06-22 15:12:27 +0000
committerRobert Swain <robert.swain@gmail.com>2008-06-22 15:12:27 +0000
commit9146e4d61c9de8fb86a7a9837705a0ad48fc547d (patch)
tree9a388e3225b3b770b2c2f3a26767fca52cf19079 /libavcodec/nellymoserdec.c
parentd47f16074ff4678d0ea968318354fc8ca6e0ba90 (diff)
downloadffmpeg-9146e4d61c9de8fb86a7a9837705a0ad48fc547d.tar.gz
Add generic ff_sine_window_init function and implement in codecs appropriately
Originally committed as revision 13888 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/nellymoserdec.c')
-rw-r--r--libavcodec/nellymoserdec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index 5db963ebcf..b30400b680 100644
--- a/libavcodec/nellymoserdec.c
+++ b/libavcodec/nellymoserdec.c
@@ -148,9 +148,7 @@ static av_cold int decode_init(AVCodecContext * avctx) {
/* Generate overlap window */
if (!sine_window[0])
- for (i=0 ; i<128; i++) {
- sine_window[i] = sin((i + 0.5) / 256.0 * M_PI);
- }
+ ff_sine_window_init(sine_window, 128);
return 0;
}