Fix for the aspect ratio error

Missing default value to not fail at the if statement.
This commit is contained in:
angelblue05 2015-07-20 20:26:40 -05:00
parent 7f9f357e37
commit cbebcbd818

View file

@ -133,7 +133,7 @@ class API():
videotrack['videocodec'] = mediaStream.get('Codec')
videotrack['height'] = mediaStream.get('Height')
videotrack['width'] = mediaStream.get('Width')
videotrack['aspectratio'] = mediaStream.get('AspectRatio')
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "1:1")
videotrack['Video3DFormat'] = item.get('Video3DFormat')
if len(videotrack['aspectratio']) >= 3:
try: