Method and apparatus for controlling a loop filter or post filter for block-based motion compensated video