[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec mpegvideo.c,1.515,1.516

Aurelien Jacobs CVS aurel
Mon May 1 02:28:39 CEST 2006


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

Modified Files:
	mpegvideo.c 
Log Message:
clip_uint8 now return an uint8_t so no need to &0xFF

Index: mpegvideo.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpegvideo.c,v
retrieving revision 1.515
retrieving revision 1.516
diff -u -d -r1.515 -r1.516
--- mpegvideo.c	28 Apr 2006 17:03:51 -0000	1.515
+++ mpegvideo.c	1 May 2006 00:28:36 -0000	1.516
@@ -5577,7 +5577,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) & 0xFF;
+            s->intra_matrix[j] = clip_uint8((ff_mpeg1_default_intra_matrix[i] * s->qscale) >> 3);
         }
         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