Prevent overflow of picture buffer