From febdd0b9b414b2adfe4c3ea2fa06ded2e32e510b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 21 Dec 2007 10:16:22 +0000 Subject: [PATCH] ~15% faster h264_chroma_mc2/4_c() these also prevent some possible out of array reads. Originally committed as revision 11290 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index e3b5db74792..523921ec179 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -1440,6 +1440,7 @@ static void OPNAME ## h264_chroma_mc2_c(uint8_t *dst/*align 8*/, uint8_t *src/*a \ assert(x<8 && y<8 && x>=0 && y>=0);\ \ + if(D){\ for(i=0; i=0 && y>=0);\ \ + if(D){\ for(i=0; i