Fix valgrind invalid read on top MB rows with CODEC_FLAG_EMU_EDGE set.