---
 libavcodec/ac3enc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git libavcodec/ac3enc.c libavcodec/ac3enc.c
index 1d6f478..7c01094 100644
--- libavcodec/ac3enc.c
+++ libavcodec/ac3enc.c
@@ -300,7 +300,7 @@ static void calc_mdct(AC3MDCTContext *mdct, int32_t *out, int16_t *in)
     int16_t *rot = mdct->rot_tmp;
     IComplex *x  = mdct->cplx_tmp;
 
-    n  = MDCT_SAMPLES;
+    n  = 1 << mdct->nbits;
     n2 = n >> 1;
     n4 = n >> 2;
 
@@ -316,7 +316,7 @@ static void calc_mdct(AC3MDCTContext *mdct, int32_t *out, int16_t *in)
         CMUL(x[i].re, x[i].im, re, im, -mdct->xcos1[i], mdct->xsin1[i]);
     }
 
-    calc_fft(mdct, x, MDCT_NBITS - 2);
+    calc_fft(mdct, x, mdct->nbits - 2);
 
     /* post rotation */
     for (i = 0; i < n4; i++) {
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to