Continuity mistake: Dumbledore asks, "Why then did the Sorting Hat place you in Gryffindor?" and in this close-up the Sorting Hat sits on two books. In the next shot, as Harry answers, "Because I asked it to." The hat now sits on three books in this close-up. During this entire scene in Dumbledore's study, things including the Sorting Hat and lamp behind Dumbledore to his right, change position depending on camera angle.
Picture added by Super Grover