I believe that the goal was (from the inaccurate view given by the camera man) offside. the player's foot was cocked when they froze the frame showing the player in an onside position. And at that moment, the player was at the furthest point he could have been to still be onside. A better view would have been from the eyes of the assistant referee.