fix corrupted videos recorded in portrait