Improved output buffering in video.php.