A method and apparatus for eliminating flicker by quantizing values based
on previous quantization is described. In one embodiment, the method
comprises encoding a first coefficient value in a first frame of a motion
sequence and subsequently setting a second coefficient in a second frame
of the motion sequence and in the same position as the first coefficient
to be within a predetermined closeness with the value of the first
coefficient.