avfilter/f_select: fix loss of precission in SAD calculation