'Correct same data based on specific rules'

def _finalize(self):

    Media._finalize(self)
    if ((not self.length) and len(self.video) and self.video[0].length):
        self.length = 0
        for track in (self.video + self.audio):
            if track.length:
                self.length = max(self.length, track.length)
