Aspects of the disclosure provide method and apparatus for video coding. In the method, prediction information of a current block in a current coding tree unit (CTU) from a coded video bitstream is decoded. The prediction information indicates an intra block copy (IBC) mode. Padded values of a reference block are determined based on a block vector that points to the reference block. The padded values of the reference block are copied from a reference sample line. At least a sample of the current block is reconstructed based on the padded values of the reference block.