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:
parent
0c6e40c174
commit
710d83bdde
@ -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; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user