The tiny white specks in dog poop that are not moving and are not worms could be from white rice or traces of bone from food. If the poop has been left exposed for a while, it could be fly larvae on them. The white specks could also be from the medication the dog was taking.