diff options
author | Robert Swain <robert.swain@gmail.com> | 2008-06-22 15:12:27 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2008-06-22 15:12:27 +0000 |
commit | 9146e4d61c9de8fb86a7a9837705a0ad48fc547d (patch) | |
tree | 9a388e3225b3b770b2c2f3a26767fca52cf19079 /libavcodec/nellymoserdec.c | |
parent | d47f16074ff4678d0ea968318354fc8ca6e0ba90 (diff) | |
download | ffmpeg-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.c | 4 |
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; } |