ratecontrol: Move Xvid-related functions to the place they are actually used