Fix a double-update in GetHalfPixelSumAbsDiffs().
Fix a double-update in GetHalfPixelSumAbsDiffs().

When RefOffset was 0, this routine falls back to the non-fractional 
pixel version, GetSumAbsDiffs(). However, both routines treat the error 
as an accumulator, initializing DiffVal to the passed ErrorSoFar and 
then adding their own contribution. This was problematic, as each 
recursion level repeated the initialization, resulting in an 
effective initial value of 2*ErrorSoFar. We instead pass '0' for 
ErrorSoFar in the recursion so that only the specific contribution in 
added to the accumulator.

Thanks to Wim Taymans for pointing out the issue.



git-svn-id: 8dbf393e6e9ab8d4979d29f9a341a98016792aa6@7770 0101bb08-14d6-0310-b084-bc0e0c8e3800

Distrotech/libtheora,KTXSoftware/theora,Distrotech/libtheora,Distrotech/libtheora,Distrotech/libtheora,Distrotech/libtheora,KTXSoftware/theora,KTXSoftware/theora,KTXSoftware/theora,KTXSoftware/theora