]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/nellymoserdec.c
cosmetics: typo
[ffmpeg] / libavcodec / nellymoserdec.c
index e1ec6e1fc03bfb59e15e17a3a3be3eeff43bf9b2..876a44f02275889fb0937495e35a9ee847313b10 100644 (file)
@@ -30,8 +30,9 @@
  * The 3 alphanumeric copyright notices are md5summed they are from the original
  * implementors. The original code is available from http://code.google.com/p/nelly2pcm/
  */
+
+#include "libavutil/random.h"
 #include "avcodec.h"
-#include "random.h"
 #include "dsputil.h"
 
 #define ALT_BITSTREAM_READER_LE
@@ -131,10 +132,10 @@ static void overlap_and_window(NellyMoserDecodeContext *s, float *state, float *
 
 static int sum_bits(short *buf, short shift, short off)
 {
-    int b, i = 0, ret = 0;
+    int i, ret = 0;
 
     for (i = 0; i < NELLY_FILL_LEN; i++) {
-        b = buf[i]-off;
+        int b = buf[i]-off;
         b = ((b>>(shift-1))+1)>>1;
         ret += av_clip(b, 0, NELLY_BIT_CAP);
     }
@@ -264,7 +265,9 @@ static void get_sample_bits(const float *buf, int *bits)
     }
 }
 
-void nelly_decode_block(NellyMoserDecodeContext *s, const unsigned char block[NELLY_BLOCK_LEN], float audio[NELLY_SAMPLES])
+static void nelly_decode_block(NellyMoserDecodeContext *s,
+                               const unsigned char block[NELLY_BLOCK_LEN],
+                               float audio[NELLY_SAMPLES])
 {
     int i,j;
     float buf[NELLY_FILL_LEN], pows[NELLY_FILL_LEN];
@@ -395,6 +398,6 @@ AVCodec nellymoser_decoder = {
     NULL,
     decode_end,
     decode_tag,
-    .long_name = "Nellymoser",
+    .long_name = "Nellymoser Asao",
 };