[FFmpeg-cvslog] 4xm: fix signed overflow

Mans Rullgard git at videolan.org
Mon Oct 10 03:59:51 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Oct  9 20:38:01 2011 +0100| [84dda407628e298f33d610e9e04a8b2945d24665] | committer: Mans Rullgard

4xm: fix signed overflow

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=84dda407628e298f33d610e9e04a8b2945d24665
---

 libavcodec/4xm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 9215789..847ebce 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -277,7 +277,7 @@ static void init_mv(FourXContext *f){
     }
 #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;
 



More information about the ffmpeg-cvslog mailing list