Fixed issues with checking for video corruption