You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +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:
@@ -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; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user