changeset 10216:5906eb8b992b libavcodec

Cosmetics. Merge declaration and initialization.
author banan
date Mon, 21 Sep 2009 20:52:24 +0000
parents a43faa684a20
children 35f1814a6496
files atrac1.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/atrac1.c	Mon Sep 21 20:49:08 2009 +0000
+++ b/atrac1.c	Mon Sep 21 20:52:24 2009 +0000
@@ -92,11 +92,9 @@
 static void at1_imdct(AT1Ctx *q, float *spec, float *out, int nbits,
                       int rev_spec)
 {
-    FFTContext* mdct_context;
+    FFTContext* mdct_context = &q->mdct_ctx[nbits - 5 - (nbits > 6)];
     int transf_size = 1 << nbits;
 
-    mdct_context = &q->mdct_ctx[nbits - 5 - (nbits > 6)];
-
     if (rev_spec) {
         int i;
         for (i = 0; i < transf_size / 2; i++)