further optimisation of loop-filter
short correction in sao_edge filter