no default width/height

This commit is contained in:
j 2012-09-14 10:54:09 +02:00
parent 45d7bb3ea3
commit 1b27def499
1 changed files with 2 additions and 2 deletions

View File

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