diff mbox series

[FFmpeg-devel,1/2] lavu/tx: disable odd-length RDFTs

Message ID NaBQCTh--3-9@lynne.ee
State New
Headers show
Series [FFmpeg-devel,1/2] lavu/tx: disable odd-length RDFTs | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Lynne July 25, 2023, 9:41 a.m. UTC
They're presently broken, and not really needed anywhere.
They can be fixed at a later date, but for 

Patch attached.

Comments

Lynne July 27, 2023, 9:59 a.m. UTC | #1
Jul 25, 2023, 11:41 by dev@lynne.ee:

> They're presently broken, and not really needed anywhere.
> They can be fixed at a later date, but for 
>
> Patch attached.
>

They *were* already disabled, as intended, in the original code.
I must've had an error in my code which caused them to show up.
This specific patch is dropped.
diff mbox series

Patch

From 01925c08bcd2073770c0c627fc64232a7593a321 Mon Sep 17 00:00:00 2001
From: Lynne <dev@lynne.ee>
Date: Tue, 25 Jul 2023 11:01:41 +0200
Subject: [PATCH 1/2] lavu/tx: disable odd-length RDFTs

They're presently broken.
---
 libavutil/tx_template.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c
index c4ec9502e0..a4040454db 100644
--- a/libavutil/tx_template.c
+++ b/libavutil/tx_template.c
@@ -1709,8 +1709,8 @@  static const FFTXCodelet TX_NAME(ff_tx_rdft_r2c_def) = {
     .type       = TX_TYPE(RDFT),
     .flags      = AV_TX_UNALIGNED | AV_TX_INPLACE |
                   FF_TX_OUT_OF_PLACE | FF_TX_FORWARD_ONLY,
-    .factors    = { 2, TX_FACTOR_ANY },
-    .nb_factors = 2,
+    .factors[0] = 2,
+    .nb_factors = 1,
     .min_len    = 2,
     .max_len    = TX_LEN_UNLIMITED,
     .init       = TX_NAME(ff_tx_rdft_init),
@@ -1724,8 +1724,8 @@  static const FFTXCodelet TX_NAME(ff_tx_rdft_c2r_def) = {
     .type       = TX_TYPE(RDFT),
     .flags      = AV_TX_UNALIGNED | AV_TX_INPLACE |
                   FF_TX_OUT_OF_PLACE | FF_TX_INVERSE_ONLY,
-    .factors    = { 2, TX_FACTOR_ANY },
-    .nb_factors = 2,
+    .factors[0] = 2,
+    .nb_factors = 1,
     .min_len    = 2,
     .max_len    = TX_LEN_UNLIMITED,
     .init       = TX_NAME(ff_tx_rdft_init),
-- 
2.40.1