diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-05-07 16:35:24 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-05-07 16:35:24 +0000 |
commit | bda1c56c474c137957c261dcf9df4fd3232a8b43 (patch) | |
tree | d8ba267686c854088aaba1086cd2df326cf16223 /libavcodec/dsputil.c | |
parent | 21be92bf4d24d26555aca86d0b38013a0bb70428 (diff) | |
download | ffmpeg-bda1c56c474c137957c261dcf9df4fd3232a8b43.tar.gz |
minor optimization of the h264 loop filter
Originally committed as revision 4198 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 2db9c66318..a19f79d316 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2667,11 +2667,11 @@ static inline void h264_loop_filter_luma_c(uint8_t *pix, int xstride, int ystrid 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++; } |