[FFmpeg-cvslog] lavu/tx: fix last coefficient scaling for R2C transforms

Lynne git at videolan.org
Thu Nov 24 16:59:53 EET 2022


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sat Nov 19 14:16:30 2022 +0100| [43d285a40f11e15839b784c85bbbcc7fafd135b5] | committer: Lynne

lavu/tx: fix last coefficient scaling for R2C transforms

This was a typo.

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

 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 59295e06ca..f33bcf85de 100644
--- a/libavutil/tx_template.c
+++ b/libavutil/tx_template.c
@@ -1622,7 +1622,7 @@ static av_cold int TX_NAME(ff_tx_rdft_init)(AVTXContext *s,
     m = (inv ? 2*s->scale_d : s->scale_d);
 
     *tab++ = RESCALE((inv ? 0.5 : 1.0) * m);
-    *tab++ = RESCALE(inv ? 0.5*m : 1.0);
+    *tab++ = RESCALE(inv ? 0.5*m : 1.0*m);
     *tab++ = RESCALE( m);
     *tab++ = RESCALE(-m);
 



More information about the ffmpeg-cvslog mailing list