[FFmpeg-devel] [PATCH 2/2] avcodec/sinewin_tablegen: use sin instead of sinf to improve precision

Marton Balint cus at passwd.hu
Sun Mar 6 12:18:49 CET 2016


Signed-off-by: Marton Balint <cus at passwd.hu>
---
 libavcodec/sinewin_tablegen.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sinewin_tablegen.h b/libavcodec/sinewin_tablegen.h
index 4432135..438cd1a 100644
--- a/libavcodec/sinewin_tablegen.h
+++ b/libavcodec/sinewin_tablegen.h
@@ -66,7 +66,7 @@ SINETABLE_CONST INTFLOAT * const AAC_RENAME(ff_sine_windows)[] = {
 av_cold void AAC_RENAME(ff_sine_window_init)(INTFLOAT *window, int n) {
     int i;
     for(i = 0; i < n; i++)
-        window[i] = SIN_FIX(sinf((i + 0.5) * (M_PI / (2.0 * n))));
+        window[i] = SIN_FIX(sin((i + 0.5) * (M_PI / (2.0 * n))));
 }
 
 av_cold void AAC_RENAME(ff_init_ff_sine_windows)(int index) {
-- 
2.6.2



More information about the ffmpeg-devel mailing list