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.
pull/388/head
Lynne 2 years ago
parent 0c6e40c174
commit 710d83bdde
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 2
      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; \
} \
}

Loading…
Cancel
Save