]> git.sesse.net Git - ffmpeg/commitdiff
lavu/tx: do not invert permutes on MDCTs
authorLynne <dev@lynne.ee>
Sat, 27 Feb 2021 03:59:21 +0000 (04:59 +0100)
committerLynne <dev@lynne.ee>
Sat, 27 Feb 2021 04:01:17 +0000 (05:01 +0100)
libavutil/tx_template.c

index 0c76e0ed6f1ad565202d1a2f20a6e8a7d7f13f8b..a436f426d2992849180ee90489069baf65917708 100644 (file)
@@ -738,7 +738,7 @@ int TX_NAME(ff_tx_init_mdct_fft)(AVTXContext *s, av_tx_fn *tx,
     if (n != 1)
         init_cos_tabs(0);
     if (m != 1) {
-        if ((err = ff_tx_gen_ptwo_revtab(s, n == 1 && !(flags & AV_TX_INPLACE))))
+        if ((err = ff_tx_gen_ptwo_revtab(s, n == 1 && !is_mdct && !(flags & AV_TX_INPLACE))))
             return err;
         if (flags & AV_TX_INPLACE) {
             if (is_mdct) /* In-place MDCTs are not supported yet */