]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/amr.h
asfdec: make nb_sub to be unsigned int
[ffmpeg] / libavcodec / amr.h
index ae6e4d1490a603366302a60b643ff395365eb2d1..676c9630dfa3c1b205c403590e9e5d60f3903a37 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef AVCODEC_AMR_H
 #define AVCODEC_AMR_H
 
+#include <string.h>
+
 #include "avcodec.h"
 
 #ifdef AMR_USE_16BIT_TABLES
@@ -61,7 +63,7 @@ static inline void ff_amr_bit_reorder(uint16_t *out, int size,
            field <<= 1;
            field |= data[bit >> 3] >> (bit & 7) & 1;
         }
-        out[field_offset] = field;
+        out[field_offset >> 1] = field;
     }
 }