no default width/height

This commit is contained in:
j 2012-09-14 10:54:09 +02:00
parent 45d7bb3ea3
commit 1b27def499

View file

@ -108,8 +108,8 @@ class File(models.Model):
else: else:
self.is_video = False self.is_video = False
self.display_aspect_ratio = "4:3" self.display_aspect_ratio = "4:3"
self.width = '320' self.width = 0
self.height = '240' self.height = 0
if 'audio' in self.info and self.info['audio'] and self.duration > 0: if 'audio' in self.info and self.info['audio'] and self.duration > 0:
audio = self.info['audio'][0] audio = self.info['audio'][0]
self.audio_codec = audio['codec'] self.audio_codec = audio['codec']