Replacing spout on irregular bathtub pipe
You'll probably just need to move the coupler further back. It could actually extend into the wall, and you could sweat the joint from the inside.

You could also use an "inside" pipe extension (example). The reduction in diameter probably isn't a concern in this case.