aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tx.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-09-23 10:32:39 +0200
committerLynne <dev@lynne.ee>2022-09-23 12:35:28 +0200
commite7a987d7c91e4fb2fc5dd93128d5dee8e2c514f6 (patch)
tree4a3979c4ade2b51c5b1db41d47efcbf692cfb106 /libavutil/tx.c
parent74e8541bab8e885a0e819b8298ae6bfb72042be9 (diff)
downloadffmpeg-e7a987d7c91e4fb2fc5dd93128d5dee8e2c514f6.tar.gz
lavu/tx: remove special -1 inverted lookup mode
It was somewhat hacky and unnecessary.
Diffstat (limited to 'libavutil/tx.c')
-rw-r--r--libavutil/tx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavutil/tx.c b/libavutil/tx.c
index aeb0d9dada..0c16ecffc3 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -213,7 +213,7 @@ int ff_tx_gen_split_radix_parity_revtab(AVTXContext *s, int len, int inv,
if (len < basis)
return AVERROR(EINVAL);
- if (!(s->map = av_mallocz((inv_lookup == -1 ? 2 : 1)*len*sizeof(*s->map))))
+ if (!(s->map = av_mallocz(len*sizeof(*s->map))))
return AVERROR(ENOMEM);
av_assert0(!dual_stride || !(dual_stride & (dual_stride - 1)));
@@ -221,9 +221,6 @@ int ff_tx_gen_split_radix_parity_revtab(AVTXContext *s, int len, int inv,
parity_revtab_generator(s->map, len, inv, 0, 0, 0, len,
basis, dual_stride, inv_lookup != 0);
- if (inv_lookup == -1)
- parity_revtab_generator(s->map + len, len, inv, 0, 0, 0, len,
- basis, dual_stride, 0);
return 0;
}