[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mpegvideo.c,1.479,1.480

Michael Niedermayer CVS michael
Sun May 8 11:58:44 CEST 2005


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

Modified Files:
	mpegvideo.c 
Log Message:
overflow fix


Index: mpegvideo.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpegvideo.c,v
retrieving revision 1.479
retrieving revision 1.480
diff -u -d -r1.479 -r1.480
--- mpegvideo.c	8 May 2005 00:44:06 -0000	1.479
+++ mpegvideo.c	8 May 2005 09:58:41 -0000	1.480
@@ -5378,7 +5378,7 @@
         for(i=1;i<64;i++){
             int j= s->dsp.idct_permutation[i];
 
-            s->intra_matrix[j] = clip_uint8((ff_mpeg1_default_intra_matrix[i] * s->qscale) >> 3);
+            s->intra_matrix[j] = clip_uint8((ff_mpeg1_default_intra_matrix[i] * s->qscale) >> 3) & 0xFF;
         }
         convert_matrix(&s->dsp, s->q_intra_matrix, s->q_intra_matrix16, 
                        s->intra_matrix, s->intra_quant_bias, 8, 8, 1);





More information about the ffmpeg-cvslog mailing list