The invention relates to a method for reducing visual artefacts in a
digital image, which is coded by blocks (B1, B2, B3, B4) and then
decoded. In the method filtering is performed to reduce visual artefacts
due to a boundary (R12, R13, R24, R34) between a current block and an
adjacent block (B1, B2, B3, B4). The filtering is performed after the
current block (B1, B2, B3, B4) is decoded and there is a boundary
available for filtering between the current block and a previously
decoded block.