Try this. Select an mp4 or m4v file. Right or Ctrl click and from the popup menu click on "Get Info". In the Info panel go to the bottom and in the "Open with" options, select Quicktime. Then click on the "Change All.." button.
You will have to do this for both an mp4 and m4v file, but afterwards they should open in Quicktime.