[FFmpeg-cvslog] avutil/tx: fix forward compound non-mod-15 based MDCTs

Lynne git at videolan.org
Thu May 16 19:34:42 EEST 2019


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Thu May 16 17:26:10 2019 +0100| [6044534964a463663803b590fe66a212af4b3834] | committer: Lynne

avutil/tx: fix forward compound non-mod-15 based MDCTs

There was a hardcoded value left. Wasn't caught earlier as no code uses
compound forward mod-3/5 MDCTs yet.

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

 libavutil/tx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/tx.c b/libavutil/tx.c
index 934ef27c81..a138c67bdc 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -504,7 +504,7 @@ static void compound_mdct_##N##xM(AVTXContext *s, void *_dst, void *_src,      \
         fft##N(s->tmp + s->revtab[i], fft##N##in, m);                          \
     }                                                                          \
                                                                                \
-    for (int i = 0; i < 15; i++)                                               \
+    for (int i = 0; i < N; i++)                                                \
         fftp(s->tmp + m*i);                                                    \
                                                                                \
     for (int i = 0; i < len8; i++) {                                           \



More information about the ffmpeg-cvslog mailing list