[FFmpeg-cvslog] avfilter/firequalizer: fix blackman window calculation

Muhammad Faiz git at videolan.org
Sun Oct 9 22:30:15 EEST 2016


ffmpeg | branch: master | Muhammad Faiz <mfcc64 at gmail.com> | Mon Oct 10 02:27:31 2016 +0700| [47d2be3056fa43ac936e5e40f0ce83df45d3be36] | committer: Muhammad Faiz

avfilter/firequalizer: fix blackman window calculation

Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=47d2be3056fa43ac936e5e40f0ce83df45d3be36
---

 libavfilter/af_firequalizer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c
index 6a9c641..72a7ff4 100644
--- a/libavfilter/af_firequalizer.c
+++ b/libavfilter/af_firequalizer.c
@@ -369,7 +369,7 @@ static int generate_kernel(AVFilterContext *ctx, const char *gain, const char *g
                 win = 0.53836 + 0.46164 * cos(u);
                 break;
             case WFUNC_BLACKMAN:
-                win = 0.48 + 0.5 * cos(u) + 0.02 * cos(2*u);
+                win = 0.42 + 0.5 * cos(u) + 0.08 * cos(2*u);
                 break;
             case WFUNC_NUTTALL3:
                 win = 0.40897 + 0.5 * cos(u) + 0.09103 * cos(2*u);



More information about the ffmpeg-cvslog mailing list