fix average for small r when deinterlacing