[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec h263.c,1.306,1.307

Richard Felker CVS rfelker
Sun Apr 9 08:53:42 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv19822/libavcodec

Modified Files:
	h263.c 
Log Message:
signedness error caused broken decoding

Index: h263.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/h263.c,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- h263.c	9 Apr 2006 06:04:00 -0000	1.306
+++ h263.c	9 Apr 2006 06:53:40 -0000	1.307
@@ -553,7 +553,7 @@
 
 #endif //CONFIG_ENCODERS
 
-#define tab_size (sizeof(s->direct_scale_mv[0])/sizeof(int16_t))
+#define tab_size ((signed)(sizeof(s->direct_scale_mv[0])/sizeof(int16_t)))
 #define tab_bias (tab_size/2)
 
 static void ff_mpeg4_init_direct_mv(MpegEncContext *s){





More information about the ffmpeg-cvslog mailing list