]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/eaidct.c
h263: Drop uninitialized variable use from log message
[ffmpeg] / libavcodec / eaidct.c
index 9d829c416163d80de7acb25bb7ccd6f080fab5c7..5b2db44affa0c7e86e5d79278c3f584c7df36c28 100644 (file)
@@ -25,7 +25,8 @@
  * @author Peter Ross <pross@xvid.org>
  */
 
-#include "dsputil.h"
+#include "eaidct.h"
+#include "libavutil/common.h"
 
 #define ASQRT 181 /* (1/sqrt(2))<<8 */
 #define A4    669 /* cos(pi/8)*sqrt(2)<<9 */
@@ -62,7 +63,7 @@
 #define MUNGE_8BIT(x) av_clip_uint8((x)>>4)
 #define IDCT_ROW(dest,src) IDCT_TRANSFORM(dest,0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7,MUNGE_8BIT,src)
 
-static inline void ea_idct_col(DCTELEM *dest, const DCTELEM *src) {
+static inline void ea_idct_col(int16_t *dest, const int16_t *src) {
     if ((src[8]|src[16]|src[24]|src[32]|src[40]|src[48]|src[56])==0) {
         dest[0]  =
         dest[8]  =
@@ -76,9 +77,9 @@ static inline void ea_idct_col(DCTELEM *dest, const DCTELEM *src) {
         IDCT_COL(dest, src);
 }
 
-void ff_ea_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block) {
+void ff_ea_idct_put_c(uint8_t *dest, int linesize, int16_t *block) {
     int i;
-    DCTELEM temp[64];
+    int16_t temp[64];
     block[0] += 4;
     for (i=0; i<8; i++)
         ea_idct_col(&temp[i], &block[i]);