diff options
author | Reimar Döffinger | 2009-11-05 18:29:06 +0000 |
---|---|---|
committer | Reimar Döffinger | 2009-11-05 18:29:06 +0000 |
commit | 1ffc6e83276b24ffaea586c83b7aabb904e4be4b (patch) | |
tree | 89042ae2619a30b0c281553f75e5e2eca94149d3 /libavcodec/rdft.c | |
parent | 9cad7e219377de4b466e8858286de23df3615b86 (diff) |
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).
Originally committed as revision 20464 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rdft.c')
-rw-r--r-- | libavcodec/rdft.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/rdft.c b/libavcodec/rdft.c index 46dd6dac3a..d6f82a7c7e 100644 --- a/libavcodec/rdft.c +++ b/libavcodec/rdft.c @@ -64,6 +64,7 @@ av_cold int ff_rdft_init(RDFTContext *s, int nbits, enum RDFTransformType trans) 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 |