Two hidden symmetries of the equations of ideal gasdynamics, and the general solution in a case of non-uniform entropy distribution