avg_ pixel functions need to use (dst+pix+1)>>1 to average with existing
authorDavid Conrad <lessen42@gmail.com>
Wed, 15 Apr 2009 19:10:16 +0000 (19:10 +0000)
committerDavid Conrad <lessen42@gmail.com>
Wed, 15 Apr 2009 19:10:16 +0000 (19:10 +0000)
commitc21c835b8d2dae324c544920ac0b3e8d583e0b99
tree8b495cd542daf2d7eae47ccfce6896e1c1b47553
parent29382bc1ebe40a9f081c2f71683a57b2d6758189
avg_ pixel functions need to use (dst+pix+1)>>1 to average with existing
pixels, not (dst+pix)>>1.
This makes the mmx functions bitexact with the C functions.

Originally committed as revision 18527 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/x86/dsputil_mmx.c
libavcodec/x86/dsputil_mmx_rnd_template.c