Mercurial > libavcodec.hg
diff rdft.c @ 10496:74b0c1a0851e libavcodec
Add ff_init_ff_cos_tabs function and use it in rdft.c to ensure that the
necessary ff_cos_tabs tables are initialized.
Fixes issue 1507 (QDM2 broken since r20237 without hardcoded tables).
author | reimar |
---|---|
date | Thu, 05 Nov 2009 18:29:06 +0000 |
parents | 63910f7ba293 |
children | 4b3da727d832 |
line wrap: on
line diff
--- a/rdft.c Thu Nov 05 01:10:27 2009 +0000 +++ b/rdft.c Thu Nov 05 18:29:06 2009 +0000 @@ -64,6 +64,7 @@ if (ff_fft_init(&s->fft, nbits-1, trans == IRDFT || trans == RIDFT) < 0) return -1; + ff_init_ff_cos_tabs(nbits); s->tcos = ff_cos_tabs[nbits]; s->tsin = ff_sin_tabs[nbits]+(trans == RDFT || trans == IRIDFT)*(n>>2); #if !CONFIG_HARDCODED_TABLES