וּבַסַּ֣ל הָֽעֶלְי֔וֹן מִכֹּ֛ל מַאֲכַ֥ל פַּרְעֹ֖ה מַעֲשֵׂ֣ה אֹפֶ֑ה וְהָע֗וֹף אֹכֵ֥ל אֹתָ֛ם מִן־הַסַּ֖ל מֵעַ֥ל רֹאשִֽׁי׃
E no cesto superior havia todo tipo de comida de Paroh, obra de padeiro, e as aves comiam delas do cesto sobre minha cabeça."
Radak
ישא פרעה את ראשך מעליך, i.e. he will separate your head from your body with a sword. Subsequently, he would be hung, and Joseph understood that he would not be given a burial from the fact that the baker had dreamt of the birds of prey. These birds feed on flesh which has not been buried.
Kitzur Ba'al HaTurim
And the birds: There are three [places this appears] according to the tradition: [here, where it states,] "and the birds shall increase;" "and the birds ate them" (Genesis 40:17); "this is the law of the beasts and the birds" (Leviticus 11:46). [This is] a hint to that which they said (Chullin 63b), "pure birds are more numerous than impure birds;" this is [what is alluded to by] "and the birds shall increase," meaning that they will be more, [but] which? "And the birds ate them," meaning those that are pure, and so [too], "this is the law, etc." refers to the pure ones.