Fixed mishandling of video files