[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec dsputil.c,1.118,1.119

Michael Niedermayer CVS michael
Sat May 7 18:35:26 CEST 2005


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

Modified Files:
	dsputil.c 
Log Message:
minor optimization of the h264 loop filter


Index: dsputil.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/dsputil.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- dsputil.c	2 May 2005 22:14:42 -0000	1.118
+++ dsputil.c	7 May 2005 16:35:24 -0000	1.119
@@ -2667,11 +2667,11 @@
                 int i_delta;
     
                 if( ABS( p2 - p0 ) < beta ) {
-                    pix[-2*xstride] = p1 + clip( ( p2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( p1 << 1 ) ) >> 1, -tc0[i], tc0[i] );
+                    pix[-2*xstride] = p1 + clip( (( p2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - p1, -tc0[i], tc0[i] );
                     tc++;
                 }
                 if( ABS( q2 - q0 ) < beta ) {
-                    pix[xstride] = q1 + clip( ( q2 + ( ( p0 + q0 + 1 ) >> 1 ) - ( q1 << 1 ) ) >> 1, -tc0[i], tc0[i] );
+                    pix[   xstride] = q1 + clip( (( q2 + ( ( p0 + q0 + 1 ) >> 1 ) ) >> 1) - q1, -tc0[i], tc0[i] );
                     tc++;
                 }
     





More information about the ffmpeg-cvslog mailing list