[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec/libpostproc postprocess_template.c, 1.93, 1.94

Michael Niedermayer CVS michael
Thu May 5 14:37:41 CEST 2005


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

Modified Files:
	postprocess_template.c 
Log Message:
GCC4 fix by (Keenan Pepper (keenanpepper  gmail com)


Index: postprocess_template.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/libpostproc/postprocess_template.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- postprocess_template.c	27 Feb 2005 08:56:26 -0000	1.93
+++ postprocess_template.c	5 May 2005 12:37:38 -0000	1.94
@@ -2646,7 +2646,7 @@
  * accurate deblock filter
  */
 static always_inline void RENAME(do_a_deblock)(uint8_t *src, int step, int stride, PPContext *c){
-	int64_t dc_mask, eq_mask;
+	int64_t dc_mask, eq_mask, both_masks;
 	int64_t sums[10*8*2];
 	src+= step*3; // src points to begin of the 8x8 Block
 //START_TIMER
@@ -2755,7 +2755,9 @@
 		: "%"REG_a
 		);
 
-	if(dc_mask & eq_mask){
+	both_masks = dc_mask & eq_mask;
+
+	if(both_masks){
 		long offset= -8*step;
 		int64_t *temp_sums= sums;
 
@@ -2930,7 +2932,7 @@
 		" js 1b						\n\t"
 
 		: "+r"(offset), "+r"(temp_sums)
-		: "r" ((long)step), "r"(src - offset), "m"(dc_mask & eq_mask)
+		: "r" ((long)step), "r"(src - offset), "m"(both_masks)
 		);
 	}else
 		src+= step; // src points to begin of the 8x8 Block





More information about the ffmpeg-cvslog mailing list