aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tx_template.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2023-09-01 06:06:44 +0200
committerLynne <dev@lynne.ee>2023-09-01 23:59:13 +0200
commit59b39d241e3937f6c87cf68b7ca1e4cc69119347 (patch)
tree3cd11c79440d539aba8bd505d0b6691856ba5915 /libavutil/tx_template.c
parent86aa34d3392282986b27dfdbf081ddfebb035604 (diff)
downloadffmpeg-59b39d241e3937f6c87cf68b7ca1e4cc69119347.tar.gz
lavu/tx: improve rdft table generation precision slightly
Diffstat (limited to 'libavutil/tx_template.c')
-rw-r--r--libavutil/tx_template.c2
1 files changed, 1 insertions, 1 deletions
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;
}