A control device applied to a flyback converter including an auxiliary switch includes: a current detector configured to detect an amplitude of a current of the flyback converter to obtain an amplitude of a negative magnetizing current of the flyback converter; and a comparator controller configured to compare the amplitude of the negative magnetizing current obtained by the current detector with a reference value, and turn off the auxiliary switch according to a comparison result. According to the present disclosure, it is able to achieve zero-voltage switching of a primary-side switch of the flyback converter with variable outputs.