WMA: use DSPContext.butterflies_float
authorMåns Rullgård <mans@mansr.com>
Wed, 23 Sep 2009 10:33:13 +0000 (10:33 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 23 Sep 2009 10:33:13 +0000 (10:33 +0000)
Originally committed as revision 19981 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/wmadec.c

index 7a65003..decdbe9 100644 (file)
@@ -637,12 +637,7 @@ static int wma_decode_block(WMACodecContext *s)
             s->channel_coded[0] = 1;
         }
 
-        for(i = 0; i < s->block_len; i++) {
-            a = s->coefs[0][i];
-            b = s->coefs[1][i];
-            s->coefs[0][i] = a + b;
-            s->coefs[1][i] = a - b;
-        }
+        s->dsp.butterflies_float(s->coefs[0], s->coefs[1], s->block_len);
     }
 
 next: