1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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.
This commit is contained in:
Lynne 2022-12-03 20:16:19 +01:00
parent 0c6e40c174
commit 710d83bdde
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -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; \
} \
}