Fixes Overflow problems with high resolution videos.