A technique to stabilize subcarrier generation in a line-locked digital
video system, caused by simultaneous locking of the genlock device
causing continuous changing of a shared clock signal, by calculating a
time shift occurring in an output waveform, converting the time shift
into an equivalent phase shift and sending a corresponding phase
correction number to a waveform generator block to correct the time
shift, and thus stabilize subcarrier generation.