Fix SAO regression on non-optimized version.

Conflicts:
	libavcodec/hevcdsp_template.c
fix weighted pred functions with avx2 optimizations