CORE: Fixed video buffer overflow