mdct wrapper function to match fft
[ffmpeg.git] / libavcodec / ac3dec.c
index c77130d..5b8810d 100644 (file)
@@ -605,7 +605,7 @@ static void do_imdct_256(AC3DecodeContext *s, int chindex)
         }
 
         /* run standard IMDCT */
-        s->imdct_256.fft.imdct_calc(&s->imdct_256, o_ptr, x);
+        ff_imdct_calc(&s->imdct_256, o_ptr, x);
 
         /* reverse the post-rotation & reordering from standard IMDCT */
         for(k=0; k<32; k++) {
@@ -642,8 +642,7 @@ static inline void do_imdct(AC3DecodeContext *s, int channels)
         if (s->block_switch[ch]) {
             do_imdct_256(s, ch);
         } else {
-            s->imdct_512.fft.imdct_calc(&s->imdct_512, s->tmp_output,
-                                        s->transform_coeffs[ch]);
+            ff_imdct_calc(&s->imdct_512, s->tmp_output, s->transform_coeffs[ch]);
         }
         /* For the first half of the block, apply the window, add the delay
            from the previous block, and send to output */