mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavu/tx: improve rdft table generation precision slightly
This commit is contained in:
parent
86aa34d339
commit
59b39d241e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user