Fix:update value of variable local_rtp_port before checking if it is not less than zero