]> git.sesse.net Git - ffmpeg/commit
h264: avoid undefined behavior in chroma motion compensation
authorJanne Grunau <janne-libav@jannau.net>
Fri, 14 Feb 2014 16:00:06 +0000 (17:00 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Thu, 20 Feb 2014 13:02:06 +0000 (14:02 +0100)
commit982b596ea6640bfe218a31f6c3fc542d9fe61c31
tree77ec6f8a5f207052a79f74ef6f4fa1b1587b4d4b
parent4bcca3611da24583dfbb8a1cc4c404a7deaa5590
h264: avoid undefined behavior in chroma motion compensation

Makes fate-h264 pass under valgrind --undef-value-errors=yes with
-cpuflags none. {avg,put}_h264_chroma_mc8_8 approximately 5% faster,
{avg,put}_h264_chroma_mc4_8 2% faster both on x86 and arm.
libavcodec/h264chroma_template.c