4xm: fix signed overflow
authorMans Rullgard <mans@mansr.com>
Sun, 9 Oct 2011 19:38:01 +0000 (20:38 +0100)
committerMans Rullgard <mans@mansr.com>
Sun, 9 Oct 2011 22:13:35 +0000 (23:13 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/4xm.c

index 9215789..847ebce 100644 (file)
@@ -277,7 +277,7 @@ static void init_mv(FourXContext *f){
     }
 #endif
 
     }
 #endif
 
-static inline void mcdc(uint16_t *dst, uint16_t *src, int log2w, int h, int stride, int scale, int dc){
+static inline void mcdc(uint16_t *dst, uint16_t *src, int log2w, int h, int stride, int scale, unsigned dc){
    int i;
    dc*= 0x10001;
 
    int i;
    dc*= 0x10001;