]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wmaprodec.c
Remove misplaced Doxygen comment.
[ffmpeg] / libavcodec / wmaprodec.c
index 922b75beffd15da744b49d391aef2c634132fbe3..3eca10150ad692e47aac8f316cd349d3eef3d611 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /**
- * @file  libavcodec/wmaprodec.c
+ * @file
  * @brief wmapro decoder implementation
  * Wmapro is an MDCT based codec comparable to wma standard or AAC.
  * The decoding therefore consists of the following steps:
@@ -1346,15 +1346,14 @@ static int decode_frame(WMAProDecodeCtx *s)
 
     /** interleave samples and write them to the output buffer */
     for (i = 0; i < s->num_channels; i++) {
-        float* ptr;
+        float* ptr  = s->samples + i;
         int incr = s->num_channels;
         float* iptr = s->channel[i].out;
-        int x;
-
-        ptr = s->samples + i;
+        float* iend = iptr + s->samples_per_frame;
 
-        for (x = 0; x < s->samples_per_frame; x++) {
-            *ptr = av_clipf(*iptr++, -1.0, 32767.0 / 32768.0);
+        // FIXME should create/use a DSP function here
+        while (iptr < iend) {
+            *ptr = *iptr++;
             ptr += incr;
         }
 
@@ -1567,7 +1566,7 @@ static void flush(AVCodecContext *avctx)
  */
 AVCodec wmapro_decoder = {
     "wmapro",
-    CODEC_TYPE_AUDIO,
+    AVMEDIA_TYPE_AUDIO,
     CODEC_ID_WMAPRO,
     sizeof(WMAProDecodeCtx),
     decode_init,