set error if upload file can not be decoded

This commit is contained in:
j 2014-02-13 12:09:49 +00:00
parent d91401189c
commit 2ceaac6c6d
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ def stream(video, target, profile, info, avconv=None):
profile, format = profile.split('.')
bpp = 0.17
if 'error' in info:
return False, "Unsupported Format"
if profile == '1080p':
height = 1080