[FFmpeg-cvslog] lavu/tx: improve rdft table generation precision slightly
Lynne
git at videolan.org
Sat Sep 2 01:00:20 EEST 2023
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Fri Sep 1 06:06:44 2023 +0200| [59b39d241e3937f6c87cf68b7ca1e4cc69119347] | committer: Lynne
lavu/tx: improve rdft table generation precision slightly
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59b39d241e3937f6c87cf68b7ca1e4cc69119347
---
libavutil/tx_template.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c
index c026cb40c4..4745b56700 100644
--- a/libavutil/tx_template.c
+++ b/libavutil/tx_template.c
@@ -1648,7 +1648,7 @@ static av_cold int TX_NAME(ff_tx_rdft_init)(AVTXContext *s,
tab = ((TXSample *)s->exp) + len4 + 8;
for (int i = 0; i < len4; i++)
- *tab++ = RESCALE(cos(((float)len/4.0 - (float)i + 0)*f) * (inv ? +1.0 : -1.0));
+ *tab++ = RESCALE(cos(((len - i*4)/4.0)*f)) * (inv ? 1 : -1);
return 0;
}
More information about the ffmpeg-cvslog
mailing list