Fix ubsan warnings: aom_dsp/variance.c

This commit ports a change from libvpx to fix ubsan warnings.

Change-Id: I74d03f595306d2f6e2356a80440ad19df41d3f73
1 file changed