diff options
author | Lynne <dev@lynne.ee> | 2022-12-03 20:16:19 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2022-12-03 21:02:00 +0100 |
commit | 710d83bdde6d598c88e9696bc4b9f6ea4b84f541 (patch) | |
tree | 1c80d59ae0405bbb2549462adaf935f5971bd9d2 /libavutil/tx_template.c | |
parent | 0c6e40c17497f74a5a8e8df4aa71515135153e1b (diff) | |
download | ffmpeg-710d83bdde6d598c88e9696bc4b9f6ea4b84f541.tar.gz |
lavu/tx: zero-out imaginary of last coefficient in forward RDFTs
We didn't do this, because it's zero anyway, but it prevents users from using
uninitialized memory in calculations.
Diffstat (limited to 'libavutil/tx_template.c')
-rw-r--r-- | libavutil/tx_template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/tx_template.c b/libavutil/tx_template.c index 56e4f6b04d..ac3dc22a2c 100644 --- a/libavutil/tx_template.c +++ b/libavutil/tx_template.c @@ -1688,7 +1688,7 @@ static void TX_NAME(ff_tx_rdft_ ##name)(AVTXContext *s, void *_dst, \ } else { \ /* Move [0].im to the last position, as convention requires */ \ data[len2].re = data[0].im; \ - data[ 0].im = 0; \ + data[ 0].im = data[len2].im = 0; \ } \ } |