A system and method for processing an overrun in the encoding of an input bitstream
are described. In one embodiment, an overrun in the encoding of an input bitstream
is determined and the severity of the overrun is determined. Finally, a current
frame is encoded using a catch-up mode to process the overrun.