- int i;
-
- /** The mid and long windows uses the same sine window splitted
- * in the middle and wrapped into zero/one regions as follows:
- *
- * region of "ones"
- * -------------
- * /
- * / 1st half
- * / of the sine
- * / window
- * ---------/
- * zero region
- *
- * The mid and short windows are subsets of the long window.
- */
-
- /* Build "zero" region */
- memset(long_window, 0, sizeof(long_window));
- /* Build sine window region */
- short_window = &long_window[112];
- ff_sine_window_init(short_window,32);
- /* Build "ones" region */
- for (i = 0; i < 112; i++)
- long_window[144 + i] = 1.0f;
- /* Save the mid window subset start */
- mid_window = &long_window[64];
-
- /* Prepare the window table */
- window_per_band[0] = mid_window;
- window_per_band[1] = mid_window;
- window_per_band[2] = long_window;
+ AT1Ctx *q = avctx->priv_data;
+
+ ff_mdct_end(&q->mdct_ctx[0]);
+ ff_mdct_end(&q->mdct_ctx[1]);
+ ff_mdct_end(&q->mdct_ctx[2]);
+
+ return 0;